]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/geodns/recipes/default.rb
Update bundle
[chef.git] / cookbooks / geodns / recipes / default.rb
index 813ac250cfed8404c00584543ea2d3eb48df1a52..f017fb1242da37dc597a9348b85a69f22794c57c 100644 (file)
@@ -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"