-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible: add ppc64le RHEL 8 instances (#2890)
Add new ppc64le RHEL 8 instances. Repurpose test-osuosl-centos7-ppc64_le-4 as an additional RHEL 8 instance. Also ensure time synchronization via `chrony` on RHEL 8, and add a handler to run when packages are updated to sync with Red Hat Subscription Manager. Refs: #2741 Refs: #2815
- Loading branch information
1 parent
fa69d8e
commit 99e22e3
Showing
14 changed files
with
104 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
|
||
# ntpd via chrony | ||
|
||
- name: install chrony | ||
ansible.builtin.package: | ||
name: chrony | ||
state: latest | ||
update_cache: yes | ||
notify: | ||
- restart chronyd | ||
- package updated | ||
|
||
- name: enable chronyd at start | ||
ansible.builtin.service: | ||
enabled: yes | ||
name: chronyd | ||
state: started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
ansible/roles/build-test-v8/tasks/partials/rhel8-ppc64.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
|
||
# | ||
# Install packages for V8 builds. | ||
# | ||
|
||
# V8 builds still require Python 2. | ||
- name: install packages required to build V8 | ||
ansible.builtin.dnf: | ||
name: ['glib2-devel', 'python2', 'python2-pip'] | ||
state: present | ||
notify: package updated | ||
|
||
- name: update python package alternatives | ||
community.general.alternatives: | ||
link: /usr/bin/python | ||
name: python | ||
path: /usr/bin/python2 | ||
|
||
- name: install dependencies for V8 build tools (Python 2) | ||
ansible.builtin.pip: | ||
executable: pip2 | ||
name: httplib2 | ||
state: present | ||
|
||
- name: install dependencies for V8 build tools (Python 3) | ||
ansible.builtin.pip: | ||
executable: pip-3 | ||
name: httplib2 | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
|
||
# Package upgrade handler | ||
|
||
- name: package updated | ||
include: "{{ handler_include }}" | ||
loop_control: | ||
loop_var: handler_include | ||
notify: package updated | ||
with_first_found: | ||
- files: | ||
- "{{ role_path }}/handlers/partials/{{ os }}-{{ arch }}.yml" | ||
- "{{ role_path }}/handlers/partials/{{ os }}.yml" | ||
- "{{ role_path }}/handlers/partials/{{ os|stripversion }}.yml" | ||
skip: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
|
||
# Red Hat Enterpise Linux 8 bootstrap handlers | ||
|
||
# If packages are updated, force a check-in with Subscription Manager to | ||
# reflect the current state. | ||
- name: clear rhsm cache | ||
ansible.builtin.file: | ||
name: /var/lib/rhsm/cache/profile.json | ||
state: absent | ||
|
||
- name: stop rhsmcertd | ||
ansible.builtin.systemd: | ||
name: rhsmcertd | ||
state: stopped | ||
|
||
- name: run rhsmcertd | ||
ansible.builtin.command: | ||
cmd: rhsmcertd --now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters