A little more whitespace. It wasn't big enough
[mirror/dsa-puppet.git] / modules / motd / manifests / init.pp
index 0068a5a..fb2a20e 100644 (file)
@@ -1,5 +1,10 @@
 class motd {
-       file { "/etc/motd":
-                content => template("motd.erb") ;
+       file { "/etc/motd.tail":
+                notify  => Exec["updatemotd"],
+                content => template("motd/motd.erb") ;
        }
+        exec { "updatemotd":
+                command => "uname -snrvm > /var/run/motd && cat /etc/motd.tail >> /var/run/motd",
+                refreshonly => true
+        }
 }