From: David Galloway Date: Tue, 23 Aug 2022 16:35:48 +0000 (-0400) Subject: cobbler: RHEL9 ks fixes X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=930165d65f63b93a6f69e99b59d966c475ba9489;p=ceph-cm-ansible.git cobbler: RHEL9 ks fixes The cblr/links path doesn't appear to work in Cobbler3. The redhat_register snippet also doesn't exist. Signed-off-by: David Galloway --- diff --git a/roles/cobbler/templates/kickstarts/cephlab_rhel.ks b/roles/cobbler/templates/kickstarts/cephlab_rhel.ks index b1b93cf4..ff75d31d 100644 --- a/roles/cobbler/templates/kickstarts/cephlab_rhel.ks +++ b/roles/cobbler/templates/kickstarts/cephlab_rhel.ks @@ -13,8 +13,11 @@ # System authorization information #if int($distro_ver_major) < 9 auth --useshadow --enablemd5 +# Use network installation +url --url=$tree #else authselect select minimal +url --url=http://@@http_server@@/cblr/distro_mirror/@@distro@@ #end if $SNIPPET('cephlab_rhel_disks') # Use text mode install @@ -27,8 +30,6 @@ firstboot --disable keyboard us # System language lang en_US -# Use network installation -url --url=$tree # If any cobbler repo definitions were referenced in the kickstart profile, include them here. $yum_repo_stanza # Network information @@ -75,7 +76,9 @@ $SNIPPET('post_install_kernel_options') $SNIPPET('func_register_if_enabled') $SNIPPET('download_config_files') $SNIPPET('koan_environment') +#if int($distro_ver_major) < 9 $SNIPPET('redhat_register') +#end if $SNIPPET('cobbler_register') # Enable post-install boot notification $SNIPPET('post_anamon')