]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Run yum update during CentOS Stream install 660/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 2 Dec 2021 22:03:02 +0000 (17:03 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 2 Dec 2021 22:03:02 +0000 (17:03 -0500)
It occurred to me that the CentOS 8 Stream ISO is probably always going to be outdated so we can just run 'yum update' during kickstart.  We *don't* want to do this for non-Stream distro because it'll update a RHEL8.4 image to RHEL8.5, for example.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler/templates/kickstarts/cephlab_rhel.ks
roles/cobbler/templates/kickstarts/cephlab_rhel_sdi.ks
roles/cobbler/templates/kickstarts/cephlab_rhel_sdm.ks

index f59763f11471b389a7e5f86a5af3a50126481cef..b1b93cf4d74779213f743b9aa5f167b5cbc32a40 100644 (file)
@@ -86,8 +86,13 @@ $SNIPPET('cephlab_user')
 #if $distro == 'RHEL'
 $SNIPPET('cephlab_rhel_rhsm')
 #end if
+#if distro_ver_minor == 'stream'
+# We want the latest packages because it's Stream
+yum -y update
+#else
 # Update to latest kernel before rebooting
 yum -y update kernel
+#end if
 $SNIPPET('cephlab_rc_local')
 $SNIPPET('kickstart_done')
 # End final steps
index f2ee0c661656bb8a6b78d031b02ca675528c7760..06be6a3b35555306f1a91221a9ee3c6a0417c2c3 100644 (file)
@@ -100,8 +100,13 @@ $SNIPPET('cephlab_user')
 #if $distro == 'RHEL'
 $SNIPPET('cephlab_rhel_rhsm')
 #end if
+#if distro_ver_minor == 'stream'
+# We want the latest packages because it's Stream
+yum -y update
+#else
 # Update to latest kernel before rebooting
 yum -y update kernel
+#end if
 $SNIPPET('cephlab_rc_local')
 $SNIPPET('kickstart_done')
 # End final steps
index a47bef442c62b9fc3966da28bf66edc5c9c16043..744bd9fe7190a0a697ef5997b589b705906ea65e 100644 (file)
@@ -100,8 +100,13 @@ $SNIPPET('cephlab_user')
 #if $distro == 'RHEL'
 $SNIPPET('cephlab_rhel_rhsm')
 #end if
+#if distro_ver_minor == 'stream'
+# We want the latest packages because it's Stream
+yum -y update
+#else
 # Update to latest kernel before rebooting
 yum -y update kernel
+#end if
 $SNIPPET('cephlab_rc_local')
 $SNIPPET('kickstart_done')
 # End final steps