]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
cobbler: Modify postinstall trigger script to work with Fedora 22 197/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 16 Feb 2016 21:17:57 +0000 (16:17 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 16 Feb 2016 22:19:15 +0000 (17:19 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/cobbler/templates/snippets/cephlab_rc_local

index c05bffc12919658dd8fdf74803a68d99adc7f416..263a5fda5b404ddfef6e89dd89f1a2580aa61b06 100644 (file)
@@ -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