Skip to content

Commit

Permalink
Make sure that named.conf.local exists and is older than the hosts fi…
Browse files Browse the repository at this point in the history
…le. This will make sure that bind creates its file the first pass.
  • Loading branch information
galthaus committed Feb 10, 2012
1 parent 836b884 commit 63fd694
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions chef/cookbooks/bind9/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@
action :enable
end

file "/etc/bind/named.conf.local" do
owner "root"
group "root"
mode 0644
content ""
action :create
not_if do File.exists?("/etc/bind/named.conf.local") end
end

file "/etc/bind/hosts" do
owner "root"
group "root"
Expand Down

0 comments on commit 63fd694

Please sign in to comment.