Cobbler would fail to create kickstart because non-Fedora distros would return 7.X, for example, as the integer resulting in CentOS and RHEL kickstarts to fail
Fixes: #14790
Signed-off-by: David Galloway <dgallowa@redhat.com>
## {{ ansible_managed }}
## @base group no longer exists in >=Fedora-22
#set distro = $getVar('distro','').split("-")[0]
-#set distro_ver = $int($getVar('distro','').split("-")[1])
-#if $distro == 'Fedora' and $distro_ver >= 22
+#set distro_ver = $getVar('distro','').split("-")[1]
+#if $distro == 'Fedora' and int($distro_ver) >= 22
@^infrastructure-server-environment
#else
@base
#set lockfile = '/.cephlab_rc_local'
# Set proper location for firstboot ansible post-install trigger
#set distro = $getVar('distro','').split("-")[0]
-#set distro_ver = $int($getVar('distro','').split("-")[1])
-#if $distro == 'Fedora' and $distro_ver >= 22
+#set distro_ver = $getVar('distro','').split("-")[1]
+#if $distro == 'Fedora' and int($distro_ver) >= 22
#set script = '/etc/rc.d/rc.local'
#else
#set script = '/etc/rc.local'