iface lo inet loopback
<% node[:networking][:interfaces].each do |name,interface| -%>
+<% if interface[:interface] -%>
iface <%= interface[:interface] %> <%= interface[:family] %> static
address <%= interface[:address] %>
autoconf 0
<% end -%>
<% end -%>
+<% end -%>
-auto lo <%= node[:networking][:interfaces].collect { |n,i| i[:interface] }.sort.uniq.join(" ") %>
+auto lo <%= node[:networking][:interfaces].collect { |n,i| i[:interface] }.compact.sort.uniq.join(" ") %>
# ZONE HOST OPTIONS
<% node.interfaces(:family => :inet, :role => :external).each do |interface| -%>
+<% if interface[:interface] -%>
<% @zones.keys.sort.each do |zone| -%>
<% if @zones[zone]["inet"] -%>
<% @zones[zone]["inet"].sort.each do |ra| -%>
<% end -%>
<% end -%>
<% end -%>
+<% end -%>
# ZONE INTERFACE BROADCAST OPTIONS
<% node[:networking][:interfaces].each do |name,interface| -%>
-<% if interface[:family] == "inet" -%>
+<% if interface[:interface] && interface[:family] == "inet" -%>
<% if interface[:role] == "internal" -%>
loc <%= interface[:interface] %> detect nosmurfs,tcpflags
<% elsif interface[:role] == "external" -%>
sz:osm <%= @type %>
ex:osm <%= @type %>
dh:osm <%= @type %>
+aws:osm <%= @type %>
:prefix => "20",
:gateway => "172.31.0.1"
}
+ },
+ :external => {
+ :zone => "aws",
+ :inet => {
+ :prefix => "32"
+ }
}
}
}
:family => :inet,
:address => "172.31.10.210",
:hwaddress => "02:c1:c5:8b:5f:1d"
+ },
+ :external_ipv4 => {
+ :role => :external,
+ :family => :inet,
+ :address => "52.50.86.69"
}
}
},