X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmotd%2Ftemplates%2Fmotd.erb;h=31936b3665e6ecfc1ad3df67460fef3d0e589d9c;hb=0fbf57679f7d1588d593f30d0fd57a976b398ab7;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..31936b366 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,18 @@ if scope.lookupvar('::cluster').to_s != 'undefined' end +if classes.include?("porterbox") + purp += "\n Disk space on porter boxes is often limited. Please respect your fellow\n" + " porters by cleaning up after yourself by deleting schroots and source/build\n" + + " trees in your $HOME, as soon as feasible. DSA reserves the right to recover\n" + + " disk space as necessary.\n" +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