X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b8a8aabcb8c98a61b0c712268eb0fc1ef1d56af7..f11aec497a1d6a2f360f0d5e9b6f60d726a09f9a:/cookbooks/geodns/recipes/default.rb diff --git a/cookbooks/geodns/recipes/default.rb b/cookbooks/geodns/recipes/default.rb index 813ac250c..f017fb124 100644 --- a/cookbooks/geodns/recipes/default.rb +++ b/cookbooks/geodns/recipes/default.rb @@ -29,6 +29,19 @@ directory "/etc/gdnsd/config.d" do mode 0o755 end +%w[tile nominatim].each do |zone| + %w[map resource weighted].each do |type| + template "/etc/gdnsd/config.d/#{zone}.#{type}" do + action :create_if_missing + source "zone.#{type}.erb" + owner "nobody" + group "nogroup" + mode 0o644 + variables :zone => zone + end + end +end + template "/etc/gdnsd/config" do source "config.erb" owner "root"