class motd {
- file { "/etc/motd.tail":
- notify => Exec["updatemotd"],
- content => template("motd/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,
}
- exec { "updatemotd":
- command => "uname -snrvm > /var/run/motd && cat /etc/motd.tail >> /var/run/motd",
- refreshonly => true
- }
}