Use systemd-resolved stub resolver for nginx resolver
[chef.git] / cookbooks / nginx / recipes / default.rb
index 94754546c257168b12a16a807d560a3066e21058..a55dc14bef92ed851f264b3689083ff668ec644e 100644 (file)
@@ -22,16 +22,11 @@ include_recipe "munin"
 
 package "nginx"
 
-resolvers = node[:networking][:nameservers].map do |resolver|
-  IPAddr.new(resolver).ipv6? ? "[#{resolver}]" : resolver
-end
-
 template "/etc/nginx/nginx.conf" do
   source "nginx.conf.erb"
   owner "root"
   group "root"
   mode 0o644
-  variables :resolvers => resolvers
 end
 
 directory node[:nginx][:cache][:fastcgi][:directory] do