]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dns/templates/default/dns-update.erb
Add DNS cookbook
[chef.git] / cookbooks / dns / templates / default / dns-update.erb
diff --git a/cookbooks/dns/templates/default/dns-update.erb b/cookbooks/dns/templates/default/dns-update.erb
new file mode 100755 (executable)
index 0000000..596a4dd
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# DO NOT EDIT - This file is being maintained by Chef
+
+umask 0002
+
+export RSYNC_PASSWORD=<%= @passwords["rsync"] %>
+export PINGDOM_USERNAME=pingdom@openstreetmap.org
+export PINGDOM_PASSWORD=<%= @passwords["pingdom"] %>
+
+cd /var/lib/dns
+
+if [ ! -d .git ]
+then
+  git clone /var/lib/git/dns.git /var/lib/dns
+fi
+
+git pull -q
+
+make update