Add support for distributing gdnsd configuration via rsync
[chef.git] / cookbooks / dns / templates / default / dns-update.erb
index 93d2e1ee3ed3db3fea101a650451b575c4b4f664..401c5c74f05bbac9e1020f334d8db6f91e4e8fa3 100755 (executable)
@@ -4,11 +4,12 @@
 
 umask 0002
 
 
 umask 0002
 
-export RSYNC_PASSWORD=<%= @passwords["rsync"] %>
-export PINGDOM_USERNAME=pingdom@openstreetmap.org
-export PINGDOM_PASSWORD=<%= @passwords["pingdom"] %>
-export STATUSCAKE_USERNAME=OpenStreetMap
-export STATUSCAKE_APIKEY=<%= @passwords["statuscake"] %>
+export RSYNC_PASSWORD="<%= @passwords["rsync"] %>"
+export GEODNS_SERVERS="<%= @geoservers.join(" ") %>"
+export PINGDOM_USERNAME="pingdom@openstreetmap.org"
+export PINGDOM_PASSWORD="<%= @passwords["pingdom"] %>"
+export STATUSCAKE_USERNAME="OpenStreetMap"
+export STATUSCAKE_APIKEY="<%= @passwords["statuscake"] %>"
 
 cd /var/lib/dns
 
 
 cd /var/lib/dns
 
@@ -19,4 +20,4 @@ fi
 
 git pull -q
 
 
 git pull -q
 
-make update
+make --jobs update