]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/templates/default/dns-check.erb
Add alert for DNSSEC validation failures
[chef.git] / cookbooks / dns / templates / default / dns-check.erb
index eabf1229bd9e40e3c086c586f87d468e39fbeffa..09f061b67db9c420872c7cac08093edfe1cd97f8 100755 (executable)
@@ -1,9 +1,12 @@
 #!/bin/sh
 
 #!/bin/sh
 
-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 GEODNS_SERVERS="<%= @geoservers.join(" ") %>"
+export STATUSCAKE_USERNAME="OpenStreetMap"
+export STATUSCAKE_APIKEY="<%= @passwords["statuscake"] %>"
+export PATH=/usr/local/bin:$PATH
 
 
-make --quiet --directory=/var/lib/dns --assume-new=lib/countries.xml update > /dev/null
+lockfile-create --use-pid /var/lib/dns/update || exit 1
+
+make --quiet --jobs --directory=/var/lib/dns update_primary > /dev/null
+
+lockfile-remove /var/lib/dns/update