X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmotd%2Ftemplates%2Fmotd.erb;h=3160aecbed1b9cad227a7cde6d5dcc2841ad2047;hb=064f700b25873ec2c937995c8eaa90f3ea76b877;hp=ff1db76c192515d039b02fe733403d1a267f26ca;hpb=dd99ed0882b5bf50434219647b1ec4e127f37264;p=mirror%2Fdsa-puppet.git diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index ff1db76c1..3160aecbe 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -50,14 +50,8 @@ if (scope.lookupvar('site::nodeinfo')['ldap'].has_key?('purpose')) purp += " porterbox" extra += "\n" if classes.include?("porterbox") - extra += "See 'schroot -l' for a list of available chroots. Start new sessions\n" - extra += "with 'schroot --begin-session -c ', run commands in sessions using\n" - extra += "'schroot --run-session -c [-- command]', and tear down sessions\n" - extra += "using 'schroot --end-session -c '. You can run a limited set of\n" - extra += "privileged commands, for instance some of apt-get, using\n" - extra += "'dd-schroot-cmd -c '.\n" - extra += "Use 'schroot --list --all-sessions' or 'schroot-list-sessions []'\n" - extra += "to list (your) open sessions.\n" + extra += "For an introduction to the porterbox 'schroot' tool, see:\n" + extra += " .\n" else extra += "See 'dchroot -l' or 'schroot -l' for a list of available chroots.\n" if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('admin') @@ -143,6 +137,22 @@ 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 classes.include?("porterbox") + purp += "\nPlease clean up any schroots after you are done using them. Please also\n" + + "remove any build and source trees in your home directory once you no longer\n" + + "need them. Disk space on porter machines often is scarce. If it becomes\n" + + "necessary we will delete your entire home directory without warning, but this\n" + + "really implies that you have been misusing resources. We would prefer this\n" + + "not become necessary.\n" + + " *** Clean up behind you! ***\n" +end + + if scope.lookupvar('site::nodeinfo').has_key?('footer') purp += "\n" + wrap(scope.lookupvar('site::nodeinfo')['footer']) + "\n" end