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:
85837d7
)
Try to add a footer to the motd of some hosts
author
Peter Palfrader
<peter@palfrader.org>
Tue, 3 Dec 2013 19:15:42 +0000
(20:15 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Tue, 3 Dec 2013 19:15:47 +0000
(20:15 +0100)
modules/motd/templates/motd.erb
patch
|
blob
|
history
diff --git
a/modules/motd/templates/motd.erb
b/modules/motd/templates/motd.erb
index
5c440cd
..
ac394e1
100644
(file)
--- a/
modules/motd/templates/motd.erb
+++ b/
modules/motd/templates/motd.erb
@@
-137,6
+137,12
@@
if scope.lookupvar('::cluster').to_s != 'undefined'
end
+if ninfo['not-bacula-client'] then
+ purp += "\n Note that this host is _NOT_ being backed up. If you care about your\n" +
+ " data, run your own backups.\n"
+end
+
+
if scope.lookupvar('site::nodeinfo').has_key?('footer')
purp += "\n" + wrap(scope.lookupvar('site::nodeinfo')['footer']) + "\n"
end