-if scope.lookupvar('::cluster')
- purp += "\nThis machine is ember of ganeti cluster: "
- purp += scope.lookupvar('::cluster') + ".\n"
+if scope.lookupvar('::cluster').to_s != 'undefined'
+ purp += "\n This server is a node in ganeti cluster: "
+ purp += scope.lookupvar('::cluster').to_s + ":\n"
+ purp += "\t" + scope.lookupvar('::cluster_nodes').to_s.split.sort.map{ |x| x.split('.')[0] }.join(", ") + ".\n"
+
+ if @lsbmajdistrelease >= '7'
+ purp += ""
+ purp += "\tCurrently the master node is $(cat /var/lib/ganeti/ssconf_master_node).\n"
+ end
+ #nodes = scope.lookupvar('::cluster_nodes').to_s.split.sort
+ #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|
+ # 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 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.")