]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/motd/manifests/init.pp
some sample rdoc
[dsa-puppet.git] / modules / motd / manifests / init.pp
1 # = Class: motd
2 #
3 # This class configures a sensible motd
4 #
5 # == Sample Usage:
6 #
7 #   include motd
8 #
9 class motd {
10
11         file { '/etc/motd.tail':
12                 notify  => Exec['updatemotd'],
13                 content => template('motd/motd.erb')
14         }
15         file { '/etc/motd':
16                 ensure => link,
17                 target => '/var/run/motd'
18         }
19
20         exec { 'updatemotd':
21                 command     => 'uname -snrvm > /var/run/motd && cat /etc/motd.tail >> /var/run/motd',
22                 refreshonly => true,
23         }
24 }