projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07b83a
)
Rebuild motd when the tail changes
author
Stephen Gran
<steve@lobefin.net>
Wed, 22 Apr 2009 23:12:15 +0000
(
00:12
+0100)
committer
Stephen Gran
<steve@lobefin.net>
Wed, 22 Apr 2009 23:12:15 +0000
(
00:12
+0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/motd/manifests/init.pp
patch
|
blob
|
history
diff --git
a/modules/motd/manifests/init.pp
b/modules/motd/manifests/init.pp
index
9c89dac
..
7c1f74e
100644
(file)
--- 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"
+ }
}