]> git.openstreetmap.org Git - chef.git/blobdiff - roles/geodns.rb
community: include maxmind account id
[chef.git] / roles / geodns.rb
index 0d151071032ede0780c2ac69ba285d8a9ce9b0c9..a2ad092f323812b6e142dc427bb0ea7bdadaaf0f 100644 (file)
@@ -1,6 +1,26 @@
 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 => [
+          "184.104.226.102",  # idris
+          "2001:470:1:b3b::6" # idris
+        ]
+      }
+    }
+  }
+)
+
 run_list(
+  "recipe[rsyncd]",
   "recipe[geodns]"
 )