- cephlab_rhel_disks
- cephlab_post_install_kernel_options
- cephlab_rhel_rhsm
- - cephlab_centos9_repos
scripts:
- cephlab_preseed_late
$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
$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
$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
$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
+++ /dev/null
-# 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
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