scope.hiera()
authorLuca Filipozzi <lfilipoz@emyr.net>
Wed, 16 May 2012 18:16:19 +0000 (18:16 +0000)
committerLuca Filipozzi <lfilipoz@emyr.net>
Wed, 16 May 2012 18:16:19 +0000 (18:16 +0000)
modules/motd/templates/motd.erb

index 9f9db8c..1a3bf19 100644 (file)
@@ -100,11 +100,9 @@ unless vms.empty?
 end
 
 
-Puppet::Parser::Functions.function(:hiera) 
-Puppet::Parser::Functions.function(:hiera_array) 
-if hiera('cluster')
+if scope.hiera('cluster')
   purp += "\nganeti cluster: " + hiera('cluster') + " contains these nodes:\n"
-  hiera_array('nodes').each do |node|
+  scope.hiera_array('nodes').each do |node|
     purp += "\t" + node
     if node.eql?(fqdn)
       purp += " (this system)"