From e173e4cae589034959e3c3b973e29413e8565941 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 5 Sep 2013 22:36:43 -0700 Subject: change /etc/hosts to use ec2_public_ipv4 (instead of ec2_local_ipv4) if defined. REQUIRES latest platform (0.2.4). --- lib/leap_cli/config/macros.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/leap_cli/config/macros.rb') diff --git a/lib/leap_cli/config/macros.rb b/lib/leap_cli/config/macros.rb index 03bd2d5..432e66d 100644 --- a/lib/leap_cli/config/macros.rb +++ b/lib/leap_cli/config/macros.rb @@ -171,8 +171,8 @@ module LeapCli; module Config node_location = node['location'] ? node['location']['name'] : nil if my_location == node_location if facts = @node.manager.facts[node.name] - if facts['ec2_local_ipv4'] - hosts[node.name]['ip_address'] = facts['ec2_local_ipv4'] + if facts['ec2_public_ipv4'] + hosts[node.name]['ip_address'] = facts['ec2_public_ipv4'] end end end -- cgit v1.2.3