From f02b03d7591719c38fab82817edca551f5895a72 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 3 Dec 2013 20:15:42 +0100 Subject: [PATCH] Try to add a footer to the motd of some hosts --- modules/motd/templates/motd.erb | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.20.1