X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/0290c55400c89d44e5102f1a2376ac3f69550a3d..d86bc7e427257c1a9560bc282d12f830b223b760:/cookbooks/networking/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index cef11a071..12f72aa9f 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -383,7 +383,7 @@ link "/etc/resolv.conf" do to "../run/systemd/resolve/stub-resolv.conf" end -hosts = { :inet => [], :inet6 => [] } +hosts = { "inet" => [], "inet6" => [] } zones = {} search(:node, "networking:interfaces").collect do |n| @@ -400,8 +400,8 @@ 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"