X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b53cbecada759e3169a483989fc50d9e2a5c25c0..f11aec497a1d6a2f360f0d5e9b6f60d726a09f9a:/cookbooks/dns/recipes/default.rb?ds=inline diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index ac404488b..4d21c21f7 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -17,8 +17,9 @@ # limitations under the License. # -include_recipe "git" +include_recipe "accounts" include_recipe "apache" +include_recipe "git" geoservers = search(:node, "roles:geodns").collect(&:name).sort @@ -29,16 +30,18 @@ package %w[ parallel rsync perl + libdigest-sha-perl + libjson-xs-perl + libwww-perl libxml-treebuilder-perl libxml-writer-perl - libyaml-perl - libwww-perl - libjson-xs-perl + libyaml-libyaml-perl + lockfile-progs ] remote_file "/usr/local/bin/dnscontrol" do action :create - source "https://github.com/StackExchange/dnscontrol/releases/download/v2.10.0/dnscontrol-Linux" + source "https://github.com/StackExchange/dnscontrol/releases/download/v3.2.0/dnscontrol-Linux" owner "root" group "root" mode 0o755 @@ -130,6 +133,7 @@ cookbook_file "#{node[:dns][:repository]}/hooks/post-receive" do owner "git" group "git" mode 0o750 + only_if { ::Dir.exist?("#{node[:dns][:repository]}/hooks") } end template "/usr/local/bin/dns-check" do