forked from nodejs/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace test-centos7-x64-1 which was hosted on IBM Cloud at SJC1 (which is closing) with a new IBM Cloud hosted server running RHEL 9.
- Loading branch information
1 parent
11ee0af
commit 470488a
Showing
9 changed files
with
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
|
||
# Red Hat Enterprise Linux 9 | ||
|
||
- name: install GPG key for EPEL 9 | ||
become: yes | ||
ansible.builtin.rpm_key: | ||
key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9 | ||
state: present | ||
|
||
- name: install EPEL 8 | ||
ansible.builtin.dnf: | ||
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
|
||
# Red Hat Enterprise Linux 9 | ||
|
||
# Set the hostname as it will be used by subscription manager. | ||
- name: gather facts | ||
setup: | ||
|
||
- name: set hostname | ||
ansible.builtin.hostname: | ||
name: "{{ inventory_hostname | regex_replace('_', '--') }}" | ||
|
||
- name: register Red Hat subscription | ||
community.general.redhat_subscription: | ||
activationkey: "{{ secrets.rh_activationkey }}" | ||
org_id: "{{ secrets.rh_org }}" | ||
state: present | ||
|
||
- name: set up swap on Linux | ||
include_tasks: linux-swap.yml | ||
when: swap_file_size_mb is defined |
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
16 changes: 16 additions & 0 deletions
16
ansible/roles/jenkins-worker/tasks/partials/tap2junit/rhel9.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,16 @@ | ||
--- | ||
|
||
# | ||
# install tap2junit from pip | ||
# | ||
|
||
- name: install pip | ||
ansible.builtin.dnf: | ||
name: python3-pip | ||
state: present | ||
|
||
- name: install tap2junit | ||
ansible.builtin.pip: | ||
executable: /usr/bin/pip3 | ||
name: tap2junit=={{ tap2junit_version }} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
|
||
# Red Hat Enterpise Linux 9 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