Skip to content

Commit

Permalink
ansible: update Java on z/OS (#2346)
Browse files Browse the repository at this point in the history
We need to use a newer service refresh of Java 8 on z/OS to one containing
an updated cacerts file that contains the root certificate to verify the
ones we have for our CI servers.
  • Loading branch information
richardlau committed Jun 16, 2020
1 parent d99cc8f commit d4b074c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions ansible/MANUAL_STEPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* [Raspberry Pi](#raspberry-pi)
* [NFS boot](#nfs-boot)
* [IBM i](#ibm-i)
* [z/OS](#zos)

## Adding firewall entries for Jenkins workers

Expand Down Expand Up @@ -517,3 +518,24 @@ After that is completed, copy to the `.bashrc` file for the nodejs user
yum install chsh
chsh -s /QOpenSys/pkgs/bin/bash
```

## z/OS

The system Java installed is too old to be able to verify the SSL certificate
for our Jenkins servers and a more recent version has to be installed manually.
The script used to start the Jenkins agent expects to find the Java SDK in
[`/u/unix1/java/J8.0_64/`](roles/jenkins-worker/vars/main.yml).

To install the Java SDK, obtain the latest Java 8 service refresh for z/OS from:
https://developer.ibm.com/javasdk/support/zos/

Transfer the pax.Z file to the z/OS system (via sftp, do not use scp as that
will perform an unwanted character conversion). Log into the z/OS system and
extract the SDK via the `pax` command:
e.g. if the pax.Z file is located in `/u/unix1/SDK8_64bit_SR6_FP10.PAX.Z`
```
mkdir -p /u/unix1/java
cd /u/unix1/java
pax -rf /u/unix1/SDK8_64bit_SR6_FP10.PAX.Z -ppx
```

2 changes: 1 addition & 1 deletion ansible/roles/jenkins-worker/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ java_path: {
'smartos16': '/opt/local/java/openjdk8/bin/java',
'smartos17': '/opt/local/java/openjdk8/bin/java',
'smartos18': '/opt/local/java/openjdk8/bin/java',
'zos13': '/usr/lpp/java/J8.0_64/bin/java'
'zos13': '/u/unix1/java/J8.0_64/bin/java'
}

# same for bash. will default to /bin/bash if you don't set it
Expand Down

0 comments on commit d4b074c

Please sign in to comment.