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:
a84f32b
)
load function
author
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 19:54:03 +0000
(19:54 +0000)
committer
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 19:54:03 +0000
(19:54 +0000)
modules/motd/templates/motd.erb
patch
|
blob
|
history
diff --git
a/modules/motd/templates/motd.erb
b/modules/motd/templates/motd.erb
index
47e4531
..
2b63708
100644
(file)
--- 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