]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
First stab at managing rc.local
authorStephen Gran <steve@lobefin.net>
Wed, 20 Oct 2010 16:13:31 +0000 (17:13 +0100)
committerStephen Gran <steve@lobefin.net>
Wed, 20 Oct 2010 16:13:51 +0000 (17:13 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/debian-org/files/rc.local [new file with mode: 0755]
modules/debian-org/manifests/init.pp

diff --git a/modules/debian-org/files/rc.local b/modules/debian-org/files/rc.local
new file mode 100755 (executable)
index 0000000..4d8738d
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ -e /proc/sys/kernel/modules_disabled ]; then
+       echo 1 > /proc/sys/kernel/modules_disabled || true
+fi
index 7af2230d9bc882ed1160ea3fe1a5436da2ecbebc..78693b5983fb1a730d4e40702e40d2010d75f0ae 100644 (file)
@@ -92,6 +92,11 @@ class debian-org {
             require => Package["libpam-pwdfile"],
             source => "puppet:///files/etc/pam.d/common-session",
             ;
+        "/etc/rc.local":
+            mode   => 0775,
+            source => "puppet:///modules/debian.org/rc.local",
+            notify => Exec["rc.local start"],
+            ;
     }
     case $hostname {
         handel: {
@@ -129,6 +134,9 @@ class debian-org {
         "puppetmaster restart":
             path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
             refreshonly => true;
+        "rc.local start":
+            path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
+            refreshonly => true;
         "procps restart":
             path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
             refreshonly => true;