]> git.openstreetmap.org Git - chef.git/blobdiff - roles/geodns.rb
Add support for distributing gdnsd configuration via rsync
[chef.git] / roles / geodns.rb
index 0d151071032ede0780c2ac69ba285d8a9ce9b0c9..a31437a697444fec0dcf63c21bf3ff2ea2a3eed1 100644 (file)
@@ -1,6 +1,25 @@
 name "geodns"
 description "Role applied to all geographic DNS servers"
 
+default_attributes(
+  :rsyncd => {
+    :modules => {
+      :geodns => {
+        :comment => "GeoDNS",
+        :path => "/etc/gdnsd/config.d",
+        :read_only => false,
+        :write_only => true,
+        :list => false,
+        :transfer_logging => false,
+        :hosts_allow => [
+          "193.60.236.20" # sarel
+        ]
+      }
+    }
+  }
+)
+
 run_list(
+  "recipe[rsyncd]",
   "recipe[geodns]"
 )