]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Install PowerTools repo on CentOS non-stream too 639/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 20 Jul 2021 16:20:57 +0000 (12:20 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 20 Jul 2021 16:20:57 +0000 (12:20 -0400)
Fixes: https://tracker.ceph.com/issues/51638#note-5
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/testnode/templates/mirrorlists/8/CentOS-PowerTools-mirrorlist [new file with mode: 0644]
roles/testnode/vars/centos_8.yml
roles/testnode/vars/centos_8_stream.yml [deleted file]

diff --git a/roles/testnode/templates/mirrorlists/8/CentOS-PowerTools-mirrorlist b/roles/testnode/templates/mirrorlists/8/CentOS-PowerTools-mirrorlist
new file mode 100644 (file)
index 0000000..89d3e64
--- /dev/null
@@ -0,0 +1,7 @@
+# {{ ansible_managed }}
+
+# local yum mirrorlist for CentOS-8 - PowerTools repo
+https://download-cc-rdu01.fedoraproject.org/pub/centos/{{ ansible_distribution_major_version }}{{ dash_stream }}/PowerTools/x86_64/os/
+http://distro.ibiblio.org/centos/{{ ansible_distribution_major_version }}{{ dash_stream }}/PowerTools/x86_64/os/
+http://packages.oit.ncsu.edu/centos/{{ ansible_distribution_major_version }}{{ dash_stream }}/PowerTools/x86_64/os/
+http://mirror.nodespace.net/centos/{{ ansible_distribution_major_version }}{{ dash_stream }}/PowerTools/x86_64/os/
index 9f5c30db9e39eccd871447bbee23e11d876958d7..cc46f7ff05253f4b4b66eec1b07b4458494200d8 100644 (file)
@@ -28,12 +28,19 @@ yum_repos:
     gpgcheck: 1
     enabled: 1
     gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
+  CentOS-PowerTools:
+    name: "CentOS-$releasever - PowerTools"
+    mirrorlist: file:///etc/yum.repos.d/CentOS-PowerTools-mirrorlist
+    gpgcheck: 1
+    enabled: 1
+    gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
 
 # These are files in roles/testnodes/templates/mirrorlists/8/
 yum_mirrorlists:
   - CentOS-AppStream-mirrorlist
   - CentOS-Base-mirrorlist
   - CentOS-Extras-mirrorlist
+  - CentOS-PowerTools-mirrorlist
 
 packages_to_upgrade:
   - libgcrypt # explicitly tied to qemu build
diff --git a/roles/testnode/vars/centos_8_stream.yml b/roles/testnode/vars/centos_8_stream.yml
deleted file mode 100644 (file)
index 840ac85..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
----
-# 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