cookbooks/mu-tools/templates/default/etc_hosts.erb in cloud-mu-2.1.0beta vs cookbooks/mu-tools/templates/default/etc_hosts.erb in cloud-mu-3.0.0beta
- old
+ new
@@ -4,10 +4,10 @@
<% if !@nodes.nil? and !@nodes.empty?
@nodes.each{ |n|
# doing only private IPs although that can be problematic
# if the same deploy has cross VPC or cross region resources
if n.name != @hostname %>
-<%= n.ipaddress %> <%= n.name %>
+<%= n['ipaddress'] %> <%= n.name %>
<%
end
}
else
if !node['deployment'].nil? and !node['deployment']['servers'].nil?