Add support for distributing gdnsd configuration via rsync
[chef.git] / cookbooks / dns / templates / default / dns-check.erb
1 #!/bin/sh
2
3 export RSYNC_PASSWORD="<%= @passwords["rsync"] %>"
4 export GEODNS_SERVERS="<%= @geoservers.join(" ") %>"
5 export PINGDOM_USERNAME="pingdom@openstreetmap.org"
6 export PINGDOM_PASSWORD="<%= @passwords["pingdom"] %>"
7 export STATUSCAKE_USERNAME="OpenStreetMap"
8 export STATUSCAKE_APIKEY="<%= @passwords["statuscake"] %>"
9
10 make --quiet --jobs --directory=/var/lib/dns --assume-new=lib/countries.xml update > /dev/null