From: Stephen Gran Date: Wed, 22 Apr 2009 23:12:15 +0000 (+0100) Subject: Rebuild motd when the tail changes X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=a85df2bee6c3751cb0ebe0a382ddd819da7e7f44;p=mirror%2Fdsa-puppet.git Rebuild motd when the tail changes Signed-off-by: Stephen Gran --- diff --git a/modules/motd/manifests/init.pp b/modules/motd/manifests/init.pp index 9c89dac2e..7c1f74e9b 100644 --- a/modules/motd/manifests/init.pp +++ b/modules/motd/manifests/init.pp @@ -1,5 +1,9 @@ class motd { file { "/etc/motd.tail": + notify => Exec["updatemotd"], content => template("motd.erb") ; } + exec { "updatemotd": + command => "uname -snrvm > /var/run/motd && cat /etc/motd.tail >> /var/run/motd" + } }