Skip to content

Commit 775d123

Browse files
committed
codereadyrepo: Enable codeready-builder for AWS's RHEL 9
When running the pynfs workflow with target nodes in AWS, "make pynfs" fails with: Error: No matching repo to modify: codeready-builder-for-rhel-9-x86_64-rpms. Adjust the logic in the codereadyrepo playbook to sketch in what is needed for running the pynfs workflow in AWS. Similar adjustments are likely to be necessary for other cloud providers and for other distibutions. Signed-off-by: Chuck Lever <[email protected]>
1 parent b436de0 commit 775d123

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier GPL-2.0+
2+
---
3+
# Our sensible defaults for the codereadyrepo role.
4+
5+
kdevops_enable_terraform: false
6+
kdevops_enable_guestfs: false

playbooks/roles/codereadyrepo/tasks/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,33 @@
55
when:
66
- ansible_distribution == 'RedHat'
77
- not devconfig_custom_yum_repofile
8+
- kdevops_enable_guestfs
89

910
- name: Select the Oracle Linux CodeReady Builder repo
1011
ansible.builtin.set_fact:
1112
codeready_repo: "ol9_codeready_builder"
1213
when:
1314
- ansible_distribution == 'OracleLinux'
1415
- not devconfig_custom_yum_repofile
16+
- kdevops_enable_guestfs
1517

1618
- name: Select the CentOS CodeReady Builder repo
1719
ansible.builtin.set_fact:
1820
codeready_repo: "crb"
1921
when:
2022
- ansible_distribution == 'CentOS'
2123
- not devconfig_custom_yum_repofile
24+
- kdevops_enable_guestfs
25+
26+
# Probably need one of these for each cloud provider
27+
- name: Select the AWS RHEL CodeReady Builder repo
28+
ansible.builtin.set_fact:
29+
codeready_repo: "codeready-builder-for-rhel-{{ ansible_distribution_major_version }}-rhui-rpms"
30+
when:
31+
- ansible_distribution == 'RedHat'
32+
- not devconfig_custom_yum_repofile
33+
- kdevops_enable_terraform
34+
- kdevops_terraform_provider == "aws"
2235

2336
- name: Enable the selected CodeReady Builder repo
2437
become: true

0 commit comments

Comments
 (0)