use scope more directly
[mirror/dsa-puppet.git] / modules / motd / templates / motd.erb
index 9f9db8c..7e8d175 100644 (file)
@@ -100,18 +100,8 @@ unless vms.empty?
 end
 
 
-Puppet::Parser::Functions.function(:hiera) 
-Puppet::Parser::Functions.function(:hiera_array) 
-if hiera('cluster')
-  purp += "\nganeti cluster: " + hiera('cluster') + " contains these nodes:\n"
-  hiera_array('nodes').each do |node|
-    purp += "\t" + node
-    if node.eql?(fqdn)
-      purp += " (this system)"
-    end
-    purp += "\n"
-  end
-  purp += "\n"
+if scope.has_key?('cluster')
+  purp += "\nMember of a ganeti cluster.\n"
 end