Skip to content

Commit

Permalink
Merge pull request crowbar#52 from ociuhandu/pull-req-release-pebbles…
Browse files Browse the repository at this point in the history
…-master-58a2078e8676eb14d4439f36e1ad3e1385f0a21b

crowbar#52

Merged by devtool for VictorLowther
  • Loading branch information
VictorLowther committed Aug 27, 2013
2 parents b060ac6 + 8bd641f commit 4e6b32a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion chef/cookbooks/bind9/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

directory "/etc/bind"

node[:dns][:zone_files]=Array.new
node.set[:dns][:zone_files]=Array.new

def populate_soa_defaults(zone)
[ :admin,
Expand Down
14 changes: 8 additions & 6 deletions chef/cookbooks/resolver/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@

dns_list << node[:dns][:nameservers]

template "/etc/resolv.conf" do
source "resolv.conf.erb"
owner "root"
group "root"
mode 0644
variables(:nameservers => dns_list.flatten, :search => node[:dns][:domain])
unless node[:platform] == "windows"
template "/etc/resolv.conf" do
source "resolv.conf.erb"
owner "root"
group "root"
mode 0644
variables(:nameservers => dns_list.flatten, :search => node[:dns][:domain])
end
end

0 comments on commit 4e6b32a

Please sign in to comment.