From: Martin Zobel-Helas Date: Sun, 1 Dec 2013 10:20:39 +0000 (+0100) Subject: get the name of a cluster node, parsing the yaml X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=5da4d56cd7c76181f91a91a24a762210abe77239;p=mirror%2Fdsa-puppet.git get the name of a cluster node, parsing the yaml Signed-off-by: Martin Zobel-Helas --- diff --git a/modules/debian-org/lib/facter/cluster.rb b/modules/debian-org/lib/facter/cluster.rb index fea14355f..c8a2ac468 100644 --- a/modules/debian-org/lib/facter/cluster.rb +++ b/modules/debian-org/lib/facter/cluster.rb @@ -10,7 +10,7 @@ if FileTest.exist?('/usr/sbin/gnt-cluster') and FileTest.exist?('/var/lib/ganeti end Facter.add('cluster_nodes') do setcode do - yaml['nodes'].keys.join(' ') + yaml['nodes']['name'].keys.join(' ') end end end