only user planet should call static-update-component on senfl. allow debwww to call...
[mirror/dsa-puppet.git] / modules / motd / manifests / init.pp
index 6f95ff6..b200312 100644 (file)
@@ -13,9 +13,9 @@ class motd {
                $notify = undef
                $mode   = '0555'
 
-               file { '/etc/motd':
-                       ensure  => present,
-                       replace => false
+               file { '/etc/update-motd.d':
+                       ensure => directory,
+                       mode   => '0755'
                }
 
        } elsif $::lsbdistcodename == 'squeeze' {
@@ -23,14 +23,11 @@ class motd {
                $notify = Exec['updatemotd']
                $mode   = '0444'
 
-               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,
-               }
+       }
+
+       file { '/etc/motd':
+               ensure => link,
+               target => '/var/run/motd'
        }
 
        file { $fname:
@@ -38,4 +35,9 @@ class motd {
                mode    => $mode,
                content => template('motd/motd.erb')
        }
+
+       exec { 'updatemotd':
+               command     => 'uname -snrvm > /var/run/motd && cat /etc/motd.tail >> /var/run/motd',
+               refreshonly => true,
+       }
 }