]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
motd: do not check porterbox class, always included now
authorHéctor Orón Martínez <zumbi@debian.org>
Mon, 27 Oct 2014 15:50:43 +0000 (16:50 +0100)
committerHéctor Orón Martínez <zumbi@debian.org>
Mon, 27 Oct 2014 15:50:43 +0000 (16:50 +0100)
Signed-off-by: Héctor Orón Martínez <zumbi@debian.org>
modules/motd/templates/motd.erb

index cfed6dca8c415acbba61bd78dd51c6bc03cfd97c..a91a16378e05d1e423a4262c71da9c1eba8c2e4f 100644 (file)
@@ -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 <URL:http://dsa.debian.org/doc/schroot/> for a brief tutorial on using schroot.")
 end