]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Another try
authorStephen Gran <steve@lobefin.net>
Sun, 26 Apr 2009 15:07:34 +0000 (16:07 +0100)
committerStephen Gran <steve@lobefin.net>
Sun, 26 Apr 2009 15:07:34 +0000 (16:07 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
manifests/site.pp
modules/motd/manifests/new.pp [new file with mode: 0644]

index 0af9a890a164aca3d1379bff89124d376acabaec..5fb46eaf50bfa4c5396e002e8f74611954629c57 100644 (file)
@@ -36,7 +36,7 @@ node default {
     case $hostname {
         spohr: {
                       include nagios::server
-                      include motd-new
+                      include motd::new
         }
         default: {
                      include nagios::client
diff --git a/modules/motd/manifests/new.pp b/modules/motd/manifests/new.pp
new file mode 100644 (file)
index 0000000..45d06f7
--- /dev/null
@@ -0,0 +1,6 @@
+class motdnew inherits motd {
+       file { "/etc/motd.tail":
+                notify  => Exec["updatemotd"],
+                content => template("motd-new.erb") ;
+       }
+}