From: Luca Filipozzi Date: Wed, 16 May 2012 18:15:23 +0000 (+0000) Subject: import hiera functions into template X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=89b1c3b6eeb6be1de39bc8a3927079e681b197e2;hp=e6a9e094a8b2df1271c39f08472b788fe3e3d0c8;p=mirror%2Fdsa-puppet.git import hiera functions into template --- diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 8844871c7..9f9db8cb4 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -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|