]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/templates/default/dns-check.erb
Add DNS cookbook
[chef.git] / cookbooks / dns / templates / default / dns-check.erb
diff --git a/cookbooks/dns/templates/default/dns-check.erb b/cookbooks/dns/templates/default/dns-check.erb
new file mode 100755 (executable)
index 0000000..24fc320
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+export RSYNC_PASSWORD=<%= @passwords["rsync"] %>
+export PINGDOM_USERNAME=pingdom@openstreetmap.org
+export PINGDOM_PASSWORD=<%= @passwords["pingdom"] %>
+
+make --quiet --directory=/var/lib/dns --assume-new=lib/countries.xml update > /dev/null