]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/motd/templates/motd.erb
stop using hiera
[dsa-puppet.git] / modules / motd / templates / motd.erb
index 7e8d1759bcaed4f44ab2dcae4fc3167a92fbe030..d5cc58047e4b8a10cfd399584b1ab3e6e958874e 100644 (file)
@@ -100,8 +100,12 @@ unless vms.empty?
 end
 
 
-if scope.has_key?('cluster')
-  purp += "\nMember of a ganeti cluster.\n"
+if scope.lookupvar('::cluster')
+  purp += "\nThis server is a node in ganeti cluster: "
+  purp += scope.lookupvar('::cluster') + ".\n"
+  scope.lookupvar('::cluster_nodes').split.each do |node|
+    purp += "\t" + node + "\n"
+  end
 end