projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
import hiera functions into template
[mirror/dsa-puppet.git]
/
modules
/
motd
/
templates
/
motd.erb
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|