to "../run/systemd/resolve/stub-resolv.conf"
end
-hosts = { :inet => [], :inet6 => [] }
+hosts = { "inet" => [], "inet6" => [] }
zones = {}
search(:node, "networking:interfaces").collect do |n|
end
end
-hosts[:inet] << "127.0.0.1" if hosts[:inet].empty?
-hosts[:inet6] << "::1" if hosts[:inet6].empty?
+hosts["inet"] << "127.0.0.1" if hosts["inet"].empty?
+hosts["inet6"] << "::1" if hosts["inet6"].empty?
if node[:networking][:firewall][:engine] == "shorewall"
package "shorewall"
define ip-private-addresses = { 10.0.0.0/8, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.2.0/24, 192.168.0.0/16 }
define ip6-private-addresses = { 2001:db8::/32, fc00::/7 }
-define ip-osm-addresses = { <%= Array(@hosts[:inet]).sort.join(", ") %> }
-define ip6-osm-addresses = { <%= Array(@hosts[:inet6]).sort.join(", ") %> }
+define ip-osm-addresses = { <%= Array(@hosts["inet"]).sort.join(", ") %> }
+define ip6-osm-addresses = { <%= Array(@hosts["inet6"]).sort.join(", ") %> }
flush ruleset