# limitations under the License.
#
-service "pdns" do
- action [ :stop, :disable ]
- supports :status => true, :restart => true, :reload => true
-end
-
-file "/etc/powerdns/countries.conf" do
- action :delete
-end
-
-file "/etc/powerdns/pdns.d/pdns.simplebind" do
- action :delete
- notifies :reload, "service[pdns]"
-end
-
-file "/etc/powerdns/pdns.d/geo.conf" do
- action :delete
-end
-
-file "/etc/powerdns/zones.d/tile.conf" do
- action :delete
-end
-
-directory "/etc/powerdns/zones.d" do
- action :delete
-end
-
-file "/etc/cron.weekly/geodns-update" do
- action :delete
-end
-
-package "pdns-backend-geo" do
- action :purge
-end
-
-package "pdns-server" do
- action :purge
-end
-
package "geoip-database-contrib"
package "gdnsd"
service "gdnsd" do
- action [ :enable, :start ]
+ action [:enable, :start]
supports :status => true, :restart => true, :reload => true
end
source "config.erb"
owner "root"
group "root"
- mode 0644
+ mode 0o644
notifies :restart, "service[gdnsd]"
end
source "geo.erb"
owner "root"
group "root"
- mode 0644
+ mode 0o644
notifies :restart, "service[gdnsd]"
end