projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6a9e09
)
import hiera functions into template
author
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 18:15:23 +0000
(18:15 +0000)
committer
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 18:15:23 +0000
(18:15 +0000)
modules/motd/templates/motd.erb
patch
|
blob
|
history
diff --git
a/modules/motd/templates/motd.erb
b/modules/motd/templates/motd.erb
index
8844871
..
9f9db8c
100644
(file)
--- 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|