]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Define addl CentOS8 Stream repo
authorDavid Galloway <dgallowa@redhat.com>
Wed, 14 Jul 2021 15:07:38 +0000 (11:07 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 14 Jul 2021 15:07:38 +0000 (11:07 -0400)
Fixes: https://tracker.ceph.com/issues/51638
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/tasks/yum/stream.yml
roles/testnode/tasks/yum_systems.yml
roles/testnode/vars/centos_8_stream.yml [new file with mode: 0644]

index 3bc1246dd4a929258bdd3e20c0f1fa1c826b9d85..62c007e6953b0b0f4fbe5943000ab71d70de0883 100644 (file)
@@ -15,3 +15,8 @@
     - ansible_lsb.description is defined
     - '"Stream" in ansible_lsb.description'
 
+- name: Include CentOS Stream specific variables
+  include_vars: "{{ item }}"
+  with_first_found:
+    - "{{ ansible_distribution | lower | regex_replace(' ', '_') }}_{{ ansible_distribution_major_version }}_stream.yml"
+    - empty.yml
index 808a7bbc2cdc1d4c3d90b843e2b0c6c8559958c8..674a453d69cdf7edfcc6044adffe284ba7005603 100644 (file)
@@ -59,6 +59,8 @@
   when:
     - ansible_lsb.description is defined
     - '"Stream" in ansible_lsb.description'
+  tags:
+    - repos
 
 - name: Setup local repo files.
   import_tasks: yum/repos.yml
diff --git a/roles/testnode/vars/centos_8_stream.yml b/roles/testnode/vars/centos_8_stream.yml
new file mode 100644 (file)
index 0000000..840ac85
--- /dev/null
@@ -0,0 +1,11 @@
+---
+# vars specific to centos 8 stream
+# Should be in addition to or in replace of vars in centos_8.yml
+
+additional_yum_repos:
+  CentOS-PowerTools:
+    name: "CentOS-$releasever - PowerTools"
+    mirrorlist: http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra
+    gpgcheck: 1
+    enabled: 1
+    gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial