X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ca91e26c0c3941b95e6d11eecf0ac3c1975d2e35..f3885e7a9dacd61ae188d461d222ef0f052c1538:/cookbooks/dns/recipes/default.rb diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index a78d1d5fc..1896e99b8 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: dns +# Cookbook:: dns # Recipe:: default # -# Copyright 2011, OpenStreetMap Foundation +# Copyright:: 2011, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -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