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:
02057a3
)
stop using hiera
author
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 20:28:52 +0000
(20:28 +0000)
committer
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 20:28:52 +0000
(20:28 +0000)
modules/motd/templates/motd.erb
patch
|
blob
|
history
diff --git
a/modules/motd/templates/motd.erb
b/modules/motd/templates/motd.erb
index
4dc5ac5
..
d5cc580
100644
(file)
--- a/
modules/motd/templates/motd.erb
+++ b/
modules/motd/templates/motd.erb
@@
-103,11
+103,7
@@
end
if scope.lookupvar('::cluster')
purp += "\nThis server is a node in ganeti cluster: "
purp += scope.lookupvar('::cluster') + ".\n"
- Puppet::Parser::Functions.function('hiera_array')
- scope.function_hiera_array('nodes').each do |node|
- purp += "\t" + node + "\n"
- end
- scope.lookupvar('::cluster_nodes').each do |node|
+ scope.lookupvar('::cluster_nodes').split.each do |node|
purp += "\t" + node + "\n"
end
end