]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/recipes/default.rb
Use strings for network families
[chef.git] / cookbooks / networking / recipes / default.rb
index cef11a071a5270f19c9c1978f130012d69cd6c84..12f72aa9f3325718f0b9d55ea9c959834b8dda50 100644 (file)
@@ -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"