Skip to content

Commit 6e4c765

Browse files
authored
ansible: Migrate IBM i to Java 17 (#3978)
Also update the IBM i 7.3 iinthecloud machines to IBM i 7.4.
1 parent 3482387 commit 6e4c765

File tree

7 files changed

+21
-10
lines changed

7 files changed

+21
-10
lines changed

ansible/inventory.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ hosts:
291291
user: admin
292292

293293
- iinthecloud:
294-
ibmi73-ppc64_be-1: {ip: 65.183.160.52, user: nodejs}
295-
ibmi73-ppc64_be-2: {ip: 65.183.160.59, user: nodejs}
294+
ibmi74-ppc64_be-1: {ip: 65.183.160.52, user: nodejs}
295+
ibmi74-ppc64_be-2: {ip: 65.183.160.59, user: nodejs}
296296

297297
- rzkh:
298298
ibmi73-ppc64_be-1:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
- name: ibmi73 | remove old repositories
3+
- name: ibmi74 | remove old repositories
44
ansible.builtin.yum_repository:
55
name: "{{ item }}"
66
reposdir: /QOpenSys/etc/yum/repos.d
@@ -9,7 +9,7 @@
99
- ibm
1010
- ibm-7.3
1111

12-
- name: ibmi73 | install IBM i repositories
12+
- name: ibmi74 | install IBM i repositories
1313
ansible.builtin.yum:
1414
name: ibmi-repos
1515
state: present
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/QOpenSys/usr/bin/ksh
2+
3+
# Create a git wrapper at /QOpenSys/pkgs/bin/git-jenkins and
4+
# configure it as the "git tool" in Jenkins UI because JV1 Java
5+
# which forces LIBPATH=/usr/lib prior to calling any program
6+
# IBM i open source packages are intalled under /QOpenSys/...
7+
unset LIBPATH
8+
exec /QOpenSys/pkgs/bin/git "$@"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- name: "ibmi : create git wrapper"
2+
ansible.builtin.copy:
3+
dest: /QOpenSys/pkgs/bin/git-jenkins
4+
src: "ibmi-git.sh"

ansible/roles/java-base/vars/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ packages: {
1212
'debian12': 'openjdk-17-jre-headless',
1313
'fedora': 'java-17-openjdk-headless',
1414
'freebsd': 'openjdk17-jre',
15-
'ibmi': 'openjdk-11-ea',
1615
'macos': 'temurin17',
1716
'rhel7': 'java-11-openjdk',
1817
'rhel8': 'java-17-openjdk',

ansible/roles/jenkins-worker/vars/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
init: {
88
aix: ['aix72', 'aix73'],
99
freebsd: 'freebsd',
10-
ibmi: 'ibmi73',
10+
ibmi: 'ibmi74',
1111
macos: 'macos',
1212
systemd: ['centos7', 'debian', 'fedora', 'rhel7', 'rhel8', 'rhel9', 'ubuntu1604', 'ubuntu1804','ubuntu2204'],
1313
svc: 'smartos',
@@ -61,7 +61,7 @@ jenkins: "{{ jenkins_init[init_type] }}"
6161

6262
# some os'es needs different paths to java. add them here.
6363
java_path: {
64-
'ibmi73': '/QOpenSys/pkgs/lib/jvm/openjdk-11/bin/java',
64+
'ibmi74': '/QOpenSys/QIBM/ProdData/JavaVM/jdk17/64bit/bin/java',
6565
'macos10.15': 'java',
6666
'macos11': 'java',
6767
'macos11.0': 'java',

jenkins/scripts/select-compiler.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [ "$DONTSELECT_COMPILER" != "DONT" ]; then
2323
*x64* ) SELECT_ARCH=X64 ;;
2424
*arm64* ) SELECT_ARCH=ARM64 ;;
2525
*armv7l* ) SELECT_ARCH=ARMV7L ;;
26-
*ibmi73* ) SELECT_ARCH=IBMI73 ;;
26+
*ibmi74* ) SELECT_ARCH=IBMI74 ;;
2727
esac
2828
fi
2929

@@ -191,13 +191,13 @@ elif [ "$SELECT_ARCH" = "S390X" ]; then
191191
echo "Compiler set to $COMPILER_LEVEL"
192192
fi
193193

194-
elif [ "$SELECT_ARCH" = "IBMI73" ]; then
194+
elif [ "$SELECT_ARCH" = "IBMI74" ]; then
195195
if [ "$NODEJS_MAJOR_VERSION" -gt "22" ]; then
196196
export COMPILER_LEVEL="12"
197197
else
198198
export COMPILER_LEVEL="10"
199199
fi
200-
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on IBMI73"
200+
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on IBMI74"
201201
export CC="ccache gcc-${COMPILER_LEVEL}"
202202
export CXX="ccache g++-${COMPILER_LEVEL}"
203203
export LINK="g++-${COMPILER_LEVEL}"

0 commit comments

Comments
 (0)