X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/955e45cdeea36bfafd32a81543db3e2fb67bdba5..ec74bf367a594ea8ec1b818ea55b51d95b5ac948:/cookbooks/dns/recipes/default.rb diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index fc1643c22..98005c41e 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -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"