X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2d434ecbb1fb361c8a79e44b2dd0fcf76f73c165..aa02df0d2f61fb4d1839e1e9fca1ec95c249572a:/cookbooks/networking/templates/default/interfaces.erb diff --git a/cookbooks/networking/templates/default/interfaces.erb b/cookbooks/networking/templates/default/interfaces.erb index 89fc316eb..33cc6620f 100644 --- a/cookbooks/networking/templates/default/interfaces.erb +++ b/cookbooks/networking/templates/default/interfaces.erb @@ -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" -%>