X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=inline;f=modules%2Fmotd%2Ftemplates%2Fmotd.erb;h=10aeec27137a7657816b43fb783ce39760e8fbd9;hb=73953673601107f75abcdc247547fc7ecde73e8a;hp=bd50962e13f53536d6f01da4587c6c367a82e304;hpb=71127bee2ef446cee2444cf2ab360c459db9b5a8;p=mirror%2Fdsa-puppet.git diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index bd50962e1..10aeec271 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -7,7 +7,7 @@ cat <. +. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -50,8 +50,9 @@ if (scope.lookupvar('site::nodeinfo')['ldap'].has_key?('purpose')) if p.delete('buildd') entries += ", the Debian #{arch} build daemon" end - if p.delete('porterbox') or classes.include?("porterbox") + if classes.include?("roles::porterbox") entries += ", the Debian #{arch} porterbox" + p.delete('porterbox') end if p.size() > 0 @@ -127,7 +128,7 @@ if scope.lookupvar('::cluster') end -if classes.include?("porterbox") +if classes.include?("roles::porterbox") purp += "\n " + wrap("Disk space on porter boxes is often limited. Please respect your fellow porters by cleaning up after yourself and deleting schroots and source/build trees in your ~ as soon as feasible. DSA reserves the right to recover disk space as necessary. See for a brief tutorial on using schroot. There may be chroots for architectures other than #{arch} available, please list available chroots to check.") end