From e1f83766a92d045cc7588b1235a1435ff3d4b752 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 11 May 2018 14:09:23 +0100 Subject: [PATCH] Create gdnsd config before trying to start the service --- cookbooks/geodns/recipes/default.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cookbooks/geodns/recipes/default.rb b/cookbooks/geodns/recipes/default.rb index ad2288c12..925b47c42 100644 --- a/cookbooks/geodns/recipes/default.rb +++ b/cookbooks/geodns/recipes/default.rb @@ -22,11 +22,6 @@ package %w[ gdnsd ] -service "gdnsd" do - action [:enable, :start] - supports :status => true, :restart => true, :reload => true -end - template "/etc/gdnsd/config" do source "config.erb" owner "root" @@ -43,6 +38,11 @@ template "/etc/gdnsd/zones/geo.openstreetmap.org" do notifies :restart, "service[gdnsd]" end +service "gdnsd" do + action [:enable, :start] + supports :status => true, :restart => true, :reload => true +end + firewall_rule "accept-dns-udp" do action :accept source "net" -- 2.43.2