purp += wrap(" This server is hosted at #{ninfo['hoster']['longname']}.")
end
vms = []
purp += wrap(" This server is hosted at #{ninfo['hoster']['longname']}.")
end
vms = []
-scope.lookupvar('site::allnodeinfo').keys.sort.each do |node|
- if scope.lookupvar('site::allnodeinfo')[node]['physicalHost'] and scope.lookupvar('site::allnodeinfo')[node]['physicalHost'].include?(fqdn)
+scope.lookupvar('deprecated::allnodeinfo').keys.sort.each do |node|
+ if scope.lookupvar('deprecated::allnodeinfo')[node]['physicalHost'] and scope.lookupvar('deprecated::allnodeinfo')[node]['physicalHost'].include?(@fqdn)
#nodes.reject{|node| node.eql?(fqdn)}.each do |node|
# purp += "\t" + node + "\n"
#nodes.each do |node|
# purp += "\t" + node + "\n"
#end
#nodes.reject{|node| node.eql?(fqdn)}.each do |node|
# purp += "\t" + node + "\n"
- # scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'].each do |ip|
+ # scope.lookupvar('deprecated::allnodeinfo')[node]['ipHostNumber'].each do |ip|
# purp += "\t\t" + ip + "\n"
# end
#end
end
# purp += "\t\t" + ip + "\n"
# end
#end
end
-if classes.include?("porterbox")
- purp += "\n " + wrap("Disk space on porter boxes is often limited. Please
-respect your fellow porters by cleaning up after yourself by deleting
-schroots and source/build trees in your $HOME, as soon as feasible. DSA
-reserves the right to recover disk space as necessary.") + "\n"
+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 <URL:https://dsa.debian.org/doc/schroot/> for a brief tutorial on using schroot. There may be chroots for architectures other than #{arch} available, please list available chroots to check.")
end
end
-if ninfo['not-bacula-client'] then
- purp += "\n " + wrap("Note that this host is _NOT_ being backed up. If you
-care about your data, run your own backups.") + "\n"
+if classes.include?('bacula::not_a_client') then
+ purp += "\n " + wrap("Note that this host is _NOT_ being backed up. If you care about your data, run your own backups.")