import hiera functions into template
[mirror/dsa-puppet.git] / modules / motd / templates / motd.erb
index 8844871..9f9db8c 100644 (file)
@@ -100,6 +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|