X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/ca91e26c0c3941b95e6d11eecf0ac3c1975d2e35..65e6abb07c5af84f4ab23c76321dc202d3ce5947:/cookbooks/dns/recipes/default.rb diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index a78d1d5fc..ddc0eb028 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -20,10 +20,14 @@ include_recipe "git" include_recipe "apache" +geoservers = search(:node, "roles:geodns").collect(&:name).sort + passwords = data_bag_item("dns", "passwords") package %w[ make + parallel + rsync perl libxml-treebuilder-perl libxml-writer-perl @@ -88,7 +92,7 @@ template "/usr/local/bin/dns-update" do owner "root" group "git" mode 0o750 - variables :passwords => passwords + variables :passwords => passwords, :geoservers => geoservers end execute "dns-update" do @@ -117,7 +121,7 @@ template "/usr/local/bin/dns-check" do owner "root" group "git" mode 0o750 - variables :passwords => passwords + variables :passwords => passwords, :geoservers => geoservers end template "/etc/cron.d/dns" do