]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/motd/manifests/init.pp
massive style guide fixups
[dsa-puppet.git] / modules / motd / manifests / init.pp
index 0068a5aae9f4393e67c59f54c8f090fceae22070..ffa85733236dc642beebd22ed6d617ad0e6caafa 100644 (file)
@@ -1,5 +1,16 @@
 class motd {
-       file { "/etc/motd":
-                content => template("motd.erb") ;
+
+       file { '/etc/motd.tail':
+               notify  => Exec['updatemotd'],
+               content => template('motd/motd.erb')
+       }
+       file { '/etc/motd':
+               ensure => link,
+               target => '/var/run/motd'
+       }
+
+       exec { 'updatemotd':
+               command     => 'uname -snrvm > /var/run/motd && cat /etc/motd.tail >> /var/run/motd',
+               refreshonly => true,
        }
 }