From: Peter Palfrader Date: Tue, 3 Dec 2013 19:15:42 +0000 (+0100) Subject: Try to add a footer to the motd of some hosts X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=f02b03d7591719c38fab82817edca551f5895a72;p=mirror%2Fdsa-puppet.git Try to add a footer to the motd of some hosts --- diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 5c440cdf9..ac394e1d4 100644 --- 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