Tell users to clean up behind them.
[mirror/dsa-puppet.git] / modules / motd / templates / motd.erb
index ff1db76..3160aec 100644 (file)
@@ -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 <chroot>', run commands in sessions using\n"
-      extra += "'schroot --run-session -c <session> [-- command]', and tear down sessions\n"
-      extra += "using 'schroot --end-session -c <session>'.  You can run a limited set of\n"
-      extra += "privileged commands, for instance some of apt-get, using\n"
-      extra += "'dd-schroot-cmd -c <session> <command>'.\n"
-      extra += "Use 'schroot --list --all-sessions' or 'schroot-list-sessions [<userglob>]'\n"
-      extra += "to list (your) open sessions.\n"
+      extra += "For an introduction to the porterbox 'schroot' tool, see:\n"
+      extra += "  <URL:http://dsa.debian.org/doc/schroot/>.\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