From afd9b5d02f39274231c327ac9de7a1a10803dc79 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 16 Feb 2016 16:17:57 -0500 Subject: [PATCH] cobbler: Modify postinstall trigger script to work with Fedora 22 Signed-off-by: David Galloway --- roles/cobbler/templates/snippets/cephlab_rc_local | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/cobbler/templates/snippets/cephlab_rc_local b/roles/cobbler/templates/snippets/cephlab_rc_local index c05bffc..263a5fd 100644 --- a/roles/cobbler/templates/snippets/cephlab_rc_local +++ b/roles/cobbler/templates/snippets/cephlab_rc_local @@ -1,6 +1,13 @@ ## {{ ansible_managed }} #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 script = '/etc/rc.d/rc.local' +#else #set script = '/etc/rc.local' +#end if cat > $script << EOF #!/bin/bash -- 2.39.5