]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/templates/default/interfaces.erb
Explcitly disable IPv6 on the IC internal network
[chef.git] / cookbooks / networking / templates / default / interfaces.erb
index 89fc316eb4aa1810321eda4af1787a498c9c8bdb..33cc6620f529949f60fbad54a63fa6866bc804bc 100644 (file)
@@ -3,8 +3,10 @@
 iface lo inet loopback
 <% node[:networking][:interfaces].each do |name,interface| -%>
 
-iface <%= interface[:interface] %> <%= interface[:family] %> static
+iface <%= interface[:interface] %> <%= interface[:family] %> <%= interface[:method] %>
+<% if interface[:address] -%>
       address   <%= interface[:address] %>
+<% end -%>
 <% if interface[:family] == "inet" -%>
       netmask   <%= interface[:netmask] %>
 <% elsif interface[:family] == "inet6" -%>