From 89b1c3b6eeb6be1de39bc8a3927079e681b197e2 Mon Sep 17 00:00:00 2001 From: Luca Filipozzi Date: Wed, 16 May 2012 18:15:23 +0000 Subject: [PATCH] import hiera functions into template --- modules/motd/templates/motd.erb | 2 ++ 1 file changed, 2 insertions(+) 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| -- 2.20.1