-template "/etc/powerdns/zones.d/tile.conf" do
- source "tile.conf.erb"
- owner "root"
- group "root"
- mode "0644"
- notifies :reload, resources(:service => "pdns")
-end
-
-template "/etc/cron.weekly/geodns-update" do
- source "cron.erb"
- owner "root"
- group "root"
- mode "0755"
-end
-
-execute "geodns-sync-countries" do
- command "rsync -z rsync://countries-ns.mdc.dk/zone/zz.countries.nerd.dk.rbldnsd /etc/powerdns/countries.conf"
- user "root"
- group "root"
- not_if { File.exist?("/etc/powerdns/countries.conf") }
+service "gdnsd" do
+ action [:enable, :start]
+ supports :status => true, :restart => true, :reload => true