projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to add a footer to the motd of some hosts
[mirror/dsa-puppet.git]
/
modules
/
motd
/
templates
/
motd.erb
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
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
if scope.lookupvar('site::nodeinfo').has_key?('footer')
purp += "\n" + wrap(scope.lookupvar('site::nodeinfo')['footer']) + "\n"
end