]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/templates/default/dns-update.erb
nginx: add munin monitoring
[chef.git] / cookbooks / dns / templates / default / dns-update.erb
index 596a4dd7da5763a329fc01c27c5af9edcf2c3925..401c5c74f05bbac9e1020f334d8db6f91e4e8fa3 100755 (executable)
@@ -4,17 +4,20 @@
 
 umask 0002
 
 
 umask 0002
 
-export RSYNC_PASSWORD=<%= @passwords["rsync"] %>
-export PINGDOM_USERNAME=pingdom@openstreetmap.org
-export PINGDOM_PASSWORD=<%= @passwords["pingdom"] %>
+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
 
 if [ ! -d .git ]
 then
 
 cd /var/lib/dns
 
 if [ ! -d .git ]
 then
-  git clone /var/lib/git/dns.git /var/lib/dns
+  git clone /var/lib/git/public/dns.git /var/lib/dns
 fi
 
 git pull -q
 
 fi
 
 git pull -q
 
-make update
+make --jobs update