Commit 29bedcdd authored by DELABROYE Dimitri's avatar DELABROYE Dimitri

[lib/refrepo/gen/puppet/kadeploy] make kadeploy use data instead if input

parent c240961c
......@@ -26,16 +26,14 @@ end
# Extract the node ip from the node hash
def get_ip(node)
node['network_adapters'].each { |device, network_adapter|
if network_adapter['mounted'] && /^eth[0-9]$/.match(device)
return network_adapter['ip']
return node['network_adapters'].select { |n|
n['mounted'] && n['device'] =~ /eth/
def generate_puppet_kadeployg5k(options)
global_hash = load_yaml_file_hierarchy
global_hash = load_data_hierarchy
if not options[:conf_dir]
options[:conf_dir] = "#{options[:output_dir]}/platforms/production/generators/kadeploy"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment