From: Luca Filipozzi Date: Wed, 16 May 2012 19:54:03 +0000 (+0000) Subject: load function X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=4e45280a2115fc85d8b49479076e9cf0a1907b38 load function --- diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 47e4531b..2b637089 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -103,7 +103,8 @@ end if scope.lookupvar('::cluster') purp += "\nThis server is a node in ganeti cluster: " purp += scope.lookupvar('::cluster') + ".\n" - scope.hiera_array('nodes').each do |node| + Puppet::Parser::Functions.function(:hiera_array) + scope.function_hiera_array('nodes').each do |node| purp += "\t" + node + "\n" end end