Skip to content

Commit

Permalink
Setup centos7-ppc64le jenkins workers
Browse files Browse the repository at this point in the history
- Add the repository for devtoolset-6.
- Do not use the "ius" repository, it doesn't support ppc64le, and was
not necessary.
  • Loading branch information
sam-github committed Apr 22, 2019
1 parent ab432f5 commit c6e9433
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
3 changes: 3 additions & 0 deletions ansible/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ hosts:
aix61-ppc64_be-1: {ip: 140.211.9.99}
ubuntu1404-ppc64_be-1: {ip: 140.211.168.76}
ubuntu1404-ppc64_le-1: {ip: 140.211.168.66}
centos7-ppc64_le-1: {ip: 140.211.168.61, user: centos}

- scaleway:
ubuntu1604-armv7l-1: {ip: 212.47.245.242}
Expand Down Expand Up @@ -150,6 +151,8 @@ hosts:
ubuntu1404-ppc64_le-1: {ip: 140.211.168.106}
ubuntu1404-ppc64_le-2: {ip: 140.211.168.94}
ubuntu1404-ppc64_le-4: {ip: 140.211.168.140}
centos7-ppc64_le-1: {ip: 140.211.168.193, user: centos}
centos7-ppc64_le-2: {ip: 140.211.168.244, user: centos}

- rackspace:
centos7-x64-1: {ip: 119.9.27.82}
Expand Down
11 changes: 10 additions & 1 deletion ansible/roles/baselayout/tasks/partials/repo/centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,26 @@
state: present

- name: centos7 | install ius
when: "arch != 'arm64'"
when: "arch != 'arm64' and arch != 'ppc64'"
yum:
name: "https://centos{{ ansible_distribution_major_version }}.iuscommunity.org/ius-release.rpm"
state: present


- name: centos7 | install scl for devtoolset-6
when: "arch != 'arm64' and arch != 'ppc64'"
yum:
name: centos-release-scl
state: present

- name: centos7 | ppc64 | install sclo7 devtoolset-6
when: "arch == 'ppc64'"
yum_repository:
name: sclo7-devtoolset-6
description: cbs.centos.org sclo7-devtoolset-6-rh-release
baseurl: https://cbs.centos.org/repos/sclo7-devtoolset-6-rh-release/$basearch/os/
gpgcheck: no

- name: centos7 | aarch64 | install sclo repo
when: "arch == 'arm64'"
copy:
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/baselayout/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ packages: {
centos7_x64: ['git2u','centos-release-scl',], # centos-release-scl is required to enable SCLo
# but we do it manually in partials/repo/centos7.yml for arm64
centos7: [
'ccache,gcc-c++,devtoolset-6,sudo,git',
'ccache,gcc-c++,devtoolset-6,sudo,git,devtoolset-6-libatomic-devel',
],

aix: [
Expand Down
21 changes: 18 additions & 3 deletions ansible/roles/java-base/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,35 @@
include_role:
name: package-upgrade

- name: download java
when: os in "ubuntu1404" and arch == "ppc64"
- name: download java ppc64
when: os in ("ubuntu1404", "centos7") and arch == "ppc64"
get_url:
url: https://github.com/AdoptOpenJDK/openjdk8-releases/releases/download/jdk8u172-b11/OpenJDK8_ppc64le_Linux_jdk8u172-b11.tar.gz
dest: /tmp/

- name: unarchive java
- name: unarchive java ubuntu1404 ppc64
when: os in "ubuntu1404" and arch == "ppc64"
unarchive:
src: /tmp/OpenJDK8_ppc64le_Linux_jdk8u172-b11.tar.gz
remote_src: yes
dest: /home/iojs
tags: java

- name: unarchive java centos7 ppc64
when: os in "centos7" and arch == "ppc64"
unarchive:
src: /tmp/OpenJDK8_ppc64le_Linux_jdk8u172-b11.tar.gz
remote_src: yes
dest: /opt
tags: java

- name: symlink java centos7 ppc64
when: os in "centos7" and arch == "ppc64"
file:
src: "/opt/jdk8u172-b11/bin/java"
dest: "/usr/bin/java"
state: link

# if this fails you want to check in vars/main.yml and add package name
# as appropriate -- try to use generic os family if available.

Expand Down

0 comments on commit c6e9433

Please sign in to comment.