3 # This class configures a sensible motd
11 if $::lsbdistcodename == 'wheezy' {
12 $fname = '/etc/update-motd.d/puppet-motd'
16 file { '/etc/update-motd.d':
21 } elsif $::lsbdistcodename == 'squeeze' {
22 $fname = '/etc/motd.tail'
23 $notify = Exec['updatemotd']
30 target => '/var/run/motd'
36 content => template('motd/motd.erb')
40 command => 'uname -snrvm > /var/run/motd && cat /etc/motd.tail >> /var/run/motd',