this should make whitelist, greylist and callout work as expected for virtual domains
[mirror/dsa-puppet.git] / modules / motd / manifests / init.pp
index 0068a5a..0de4936 100644 (file)
@@ -1,5 +1,15 @@
 class motd {
-       file { "/etc/motd":
-                content => template("motd.erb") ;
+       file { "/etc/motd.tail":
+                notify  => Exec["updatemotd"],
+                content => template("motd/motd.erb") ;
+               "/etc/motd":
+                 ensure => "/var/run/motd";
        }
+        exec { "updatemotd":
+                command => "uname -snrvm > /var/run/motd && cat /etc/motd.tail >> /var/run/motd",
+                refreshonly => true
+        }
 }
+# vim:set et:
+# vim:set sts=4 ts=4:
+# vim:set shiftwidth=4: