X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fmotd%2Ftemplates%2Fmotd.erb;h=a91a16378e05d1e423a4262c71da9c1eba8c2e4f;hb=c54dc85e499b9c2ffe041ded769cf1da1453609d;hp=cfed6dca8c415acbba61bd78dd51c6bc03cfd97c;hpb=1055b6b9d0f2f0c30898fc74df2e3b092ebfd543;p=dsa-puppet.git diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index cfed6dca..a91a1637 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -50,7 +50,7 @@ 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 p.delete('porterbox') or scope.lookupvar('site::nodeinfo').has_key?('porterbox') entries += ", the Debian #{arch} porterbox" end @@ -129,7 +129,7 @@ if scope.lookupvar('::cluster').to_s != 'undefined' end -if classes.include?("porterbox") +if scope.lookupvar('site::nodeinfo').has_key?('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.") end