X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a07392386b834a4669610cb4d8a84d0ea7509eaf..3903aeca9d5b355fa9745f7f6e7358d6e1ba5d5d:/cookbooks/dns/recipes/default.rb?ds=inline diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index 3102217e6..98005c41e 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -41,7 +41,7 @@ package %w[ remote_file "/usr/local/bin/dnscontrol" do action :create - source "https://github.com/StackExchange/dnscontrol/releases/download/v3.10.1/dnscontrol-Linux" + source "https://github.com/StackExchange/dnscontrol/releases/download/v3.12.0/dnscontrol-Linux" owner "root" group "root" mode "755" @@ -128,6 +128,15 @@ template "/var/lib/dns/creds.json" do variables :passwords => passwords end +template "/var/lib/dns/include/geo.js" do + source "geo.js.erb" + owner "git" + group "git" + mode "440" + variables :geoservers => geoservers + only_if { ::Dir.exist?("/var/lib/dns/include") } +end + cookbook_file "#{node[:dns][:repository]}/hooks/post-receive" do source "post-receive" owner "git"