]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Revert "cobbler: Put CentOS9 Stream repos in place during kickstart"
authorDavid Galloway <dgallowa@redhat.com>
Thu, 25 Aug 2022 18:28:50 +0000 (14:28 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 25 Aug 2022 18:28:50 +0000 (14:28 -0400)
This reverts commit 9d277d66e9e96bd2fe5d5490018536ebe0db8140.

This hack isn't needed with a newer CentOS 9 Stream ISO.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler/defaults/main.yml
roles/cobbler/templates/kickstarts/cephlab_rhel.ks
roles/cobbler/templates/kickstarts/cephlab_rhel_sdc.ks
roles/cobbler/templates/kickstarts/cephlab_rhel_sdi.ks
roles/cobbler/templates/kickstarts/cephlab_rhel_sdm.ks
roles/cobbler/templates/snippets/cephlab_centos9_repos [deleted file]
roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh

index 26124feed85965ca55e2a3a7f398ac09fbfa33ec..1709277153d8ce7f06443614aeeac97d2e4ba2cc 100644 (file)
@@ -43,7 +43,6 @@ snippets:
   - cephlab_rhel_disks
   - cephlab_post_install_kernel_options
   - cephlab_rhel_rhsm
-  - cephlab_centos9_repos
 
 scripts:
   - cephlab_preseed_late
index 17c255cf0fa4964a6c65bc997ca7dd19209ae1ad..b1b93cf4d74779213f743b9aa5f167b5cbc32a40 100644 (file)
@@ -87,10 +87,6 @@ $SNIPPET('cephlab_user')
 $SNIPPET('cephlab_rhel_rhsm')
 #end if
 #if distro_ver_minor == 'stream'
-# Put CentOS 9 Stream repos in place
-#if int($distro_ver_major) == 9
-$SNIPPET('cephlab_centos9_repos')
-#end if
 # We want the latest packages because it's Stream
 yum -y update
 #else
index e2e95a112457fc61d96a8dadc370c3fe62a3bc51..3b61db739e62f55baa147dc97ac8a1ddadb010b0 100644 (file)
@@ -101,10 +101,6 @@ $SNIPPET('cephlab_user')
 $SNIPPET('cephlab_rhel_rhsm')
 #end if
 #if distro_ver_minor == 'stream'
-# Put CentOS 9 Stream repos in place
-#if int($distro_ver_major) == 9
-$SNIPPET('cephlab_centos9_repos')
-#end if
 # We want the latest packages because it's Stream
 yum -y update
 #else
index 491b195d30aa7f79d80430e95bfc7d3a975132a4..06be6a3b35555306f1a91221a9ee3c6a0417c2c3 100644 (file)
@@ -101,9 +101,6 @@ $SNIPPET('cephlab_user')
 $SNIPPET('cephlab_rhel_rhsm')
 #end if
 #if distro_ver_minor == 'stream'
-#if int($distro_ver_major) == 9
-$SNIPPET('cephlab_centos9_repos')
-#end if
 # We want the latest packages because it's Stream
 yum -y update
 #else
index 97be7f86ec9a10cabc0f4fdc3f0fda83b972ab17..744bd9fe7190a0a697ef5997b589b705906ea65e 100644 (file)
@@ -101,9 +101,6 @@ $SNIPPET('cephlab_user')
 $SNIPPET('cephlab_rhel_rhsm')
 #end if
 #if distro_ver_minor == 'stream'
-#if int($distro_ver_major) == 9
-$SNIPPET('cephlab_centos9_repos')
-#end if
 # We want the latest packages because it's Stream
 yum -y update
 #else
diff --git a/roles/cobbler/templates/snippets/cephlab_centos9_repos b/roles/cobbler/templates/snippets/cephlab_centos9_repos
deleted file mode 100644 (file)
index ef22863..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-# For some reason, when kickstarting a CentOS 9 installation,
-# BaseOS and AppStream repos are missing out the gate.
-
-cat >> /etc/yum.repos.d/CentOS-BaseOS.repo << EOF
-[CentOS-Base]
-baseurl=https://composes.stream.centos.org/production/latest-CentOS-Stream/compose/BaseOS/$basearch/os/
-enabled=1
-gpgcheck=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
-name=CentOS-$releasever - Base
-EOF
-
-cat >> /etc/yum.repos.d/CentOS-AppStream.repo << EOF
-[CentOS-AppStream]
-baseurl=https://composes.stream.centos.org/production/latest-CentOS-Stream/compose/AppStream/$basearch/os/
-enabled=1
-gpgcheck=1
-gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
-name=CentOS-$releasever - AppStream
-EOF
index 3120bf551220c2cae67b9c0d199ceea669106449..0fa62f0986f6b7f1c563c5e1922fbb6625ee5750 100644 (file)
@@ -36,6 +36,10 @@ export ANSIBLE_HOST_KEY_CHECKING=False
 if [[ $profile == *"8.stream"* ]]
 then
     ansible-playbook tools/convert-to-centos-stream.yml -v --limit $name* 2>&1 >> /var/log/ansible/$name.log
+elif [[ $profile == *"9.stream"* ]]
+then
+    # For some reason, we end up with no repos on the first boot without doing this.
+    ansible-playbook testnodes.yml --tags repos -v --limit $name* 2>&1 >> /var/log/ansible/$name.log
 fi
 
 # Tell ansible to create users, populate authorized_keys, and zap non-root disks