From: Tom Hughes Date: Fri, 11 May 2018 13:09:23 +0000 (+0100) Subject: Create gdnsd config before trying to start the service X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/e1f83766a92d045cc7588b1235a1435ff3d4b752 Create gdnsd config before trying to start the service --- 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"