]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
bad puppet
authorPeter Palfrader <peter@palfrader.org>
Sun, 28 Feb 2010 20:10:10 +0000 (21:10 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sun, 28 Feb 2010 20:10:10 +0000 (21:10 +0100)
manifests/site.pp
modules/raid-mpt/manifest/init.pp [deleted file]
modules/raidmpt/manifest/init.pp [new file with mode: 0644]

index b078599e39278d0c87ae1f3bece166b36c1f8070..513d1ff199f9bec9feabdf7f5c3e70d9c0e45c74 100644 (file)
@@ -43,7 +43,7 @@ node default {
         "true":    { package { acpid: ensure => installed } }
     }
     case $mptraid {
-        "true":    { include "raid-mpt" }
+        "true":    { include "raidmpt" }
     }
 
     case $mta {
diff --git a/modules/raid-mpt/manifest/init.pp b/modules/raid-mpt/manifest/init.pp
deleted file mode 100644 (file)
index 206f926..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-class "raid-mpt" {
-    package {
-        mtp-status: ensure => installed;
-    }
-
-    file {
-        "/etc/default/mpt-statusd":
-            content =>  "# This file is under puppet control" +
-                        "RUN_DAEMON=no",
-            notify  => Exec["mpt-statusd-stop"],
-            ;
-    }
-    exec {
-        "mpt-statusd-stop":
-            command: 'pidfile=/var/run/mpt-statusd.pid; ! [ -e "$pidfile" ] || /sbin/start-stop-daemon --oknodo --stop --quiet --pidfile "$pidfile"; rm -f "$pidfile"'
-            refreshonly => true,
-            ;
-    }
-}
-# vim:set et:
-# vim:set ts=4:
-# vim:set shiftwidth=4:
diff --git a/modules/raidmpt/manifest/init.pp b/modules/raidmpt/manifest/init.pp
new file mode 100644 (file)
index 0000000..2aa4ac7
--- /dev/null
@@ -0,0 +1,22 @@
+class raidmpt {
+    package {
+        mtp-status: ensure => installed;
+    }
+
+    file {
+        "/etc/default/mpt-statusd":
+            content =>  "# This file is under puppet control" +
+                        "RUN_DAEMON=no",
+            notify  => Exec["mpt-statusd-stop"],
+            ;
+    }
+    exec {
+        "mpt-statusd-stop":
+            command: 'pidfile=/var/run/mpt-statusd.pid; ! [ -e "$pidfile" ] || /sbin/start-stop-daemon --oknodo --stop --quiet --pidfile "$pidfile"; rm -f "$pidfile"'
+            refreshonly => true,
+            ;
+    }
+}
+# vim:set et:
+# vim:set ts=4:
+# vim:set shiftwidth=4: