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:
93b62c6
)
use scope.lookupvar per conversation with sgran
author
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 19:34:55 +0000
(19:34 +0000)
committer
Luca Filipozzi
<lfilipoz@emyr.net>
Wed, 16 May 2012 19:34:55 +0000
(19:34 +0000)
modules/motd/templates/motd.erb
patch
|
blob
|
history
diff --git
a/modules/motd/templates/motd.erb
b/modules/motd/templates/motd.erb
index
6fb4374
..
18c50e2
100644
(file)
--- a/
modules/motd/templates/motd.erb
+++ b/
modules/motd/templates/motd.erb
@@
-100,8
+100,9
@@
unless vms.empty?
end
-if @cluster
- purp += "\nMember of a ganeti cluster.\n"
+if scope.lookupvar('::cluster')
+ purp += "\nThis machine is ember of ganeti cluster: "
+ purp += scope.lookupvar('::cluster') + ".\n"
end