]> git.openstreetmap.org Git - chef.git/blob - cookbooks/networking/templates/default/shorewall6-interfaces.erb
Add optional support for generating netplan configuration
[chef.git] / cookbooks / networking / templates / default / shorewall6-interfaces.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 ?FORMAT 2
4   
5 # ZONE  INTERFACE       OPTIONS
6 <% node[:networking][:interfaces].each do |name,interface| -%>
7 <% if interface[:family] == "inet6" -%>
8 <% if interface[:role] == "internal" -%>
9 loc     <%= interface[:interface] %>            -
10 <% elsif interface[:role] == "external" -%>
11 net     <%= interface[:interface] %>            -
12 <% end -%>
13 <% end -%>
14 <% end -%>