X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fmotd%2Ftemplates%2Fmotd.erb;h=2b6370899e5e42e27f28bf55a1219aee9e51f5c2;hb=4e45280a2115fc85d8b49479076e9cf0a1907b38;hp=47e4531be36bdf5467bb8ed3e690b525586cfa9e;hpb=a84f32b02244c18130bc32f6b410367af2c07279;p=dsa-puppet.git 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