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:
359963b
)
redo the cluster fact for ganeti 2.9.1
author
Martin Zobel-Helas
<zobel@debian.org>
Sun, 1 Dec 2013 14:47:05 +0000
(15:47 +0100)
committer
Martin Zobel-Helas
<zobel@debian.org>
Sun, 1 Dec 2013 14:47:37 +0000
(15:47 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
modules/debian-org/lib/facter/cluster.rb
patch
|
blob
|
history
diff --git
a/modules/debian-org/lib/facter/cluster.rb
b/modules/debian-org/lib/facter/cluster.rb
index
fea1435
..
543eeba
100644
(file)
--- a/
modules/debian-org/lib/facter/cluster.rb
+++ b/
modules/debian-org/lib/facter/cluster.rb
@@
-7,10
+7,15
@@
if FileTest.exist?('/usr/sbin/gnt-cluster') and FileTest.exist?('/var/lib/ganeti
setcode do
yaml['cluster']['cluster_name']
end
- end
Facter.add('cluster_nodes') do
- setcode do
- yaml['nodes'].keys.join(' ')
+ nodename = []
+ yaml["nodes"].each do |uuid,value|
+ nodename << value["name"]
+ end
+ ret = nodename.join(" ")
+ setcode do
+ ret
+ end
end
end
end