]> 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 0de4936028982dcef035393442d4fe724e922ba0..ffa85733236dc642beebd22ed6d617ad0e6caafa 100644 (file)
@@ -1,15 +1,16 @@
 class motd {
-       file { "/etc/motd.tail":
-                notify  => Exec["updatemotd"],
-                content => template("motd/motd.erb") ;
-               "/etc/motd":
-                 ensure => "/var/run/motd";
+
+       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,
        }
-        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: