Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@
case platform
when "centos","redhat","fedora","scientific","amazon"
default[:bind9][:config_path] = "/etc/named"
default[:bind9][:config_file] = "/etc/named.conf"
default[:bind9][:options_file] = "/etc/named/named.conf.options"
default[:bind9][:local_file] = "/etc/named/named.conf.local"
default[:bind9][:data_path] = "/var/named"
default[:bind9][:config_file] = "/etc/named.conf"
default[:bind9][:options_file] = "/etc/named/named.conf.options"
default[:bind9][:local_file] = "/etc/named/named.conf.local"
default[:bind9][:data_path] = "/var/named"
default[:bind9][:log_path] = "/var/log/bind"
default[:bind9][:user] = "named"
else
default[:bind9][:config_path] = "/etc/bind"
default[:bind9][:options_file] = "/etc/bind/named.conf.options"
default[:bind9][:local_file] = "/etc/bind/named.conf.local"
default[:bind9][:data_path] = "/var/cache/bind"
default[:bind9][:user] = "bind"
default[:bind9][:options_file] = "/etc/bind/named.conf.options"
default[:bind9][:local_file] = "/etc/bind/named.conf.local"
default[:bind9][:data_path] = "/var/cache/bind"
default[:bind9][:log_path] = "/var/log/named"
default[:bind9][:user] = "bind"
end
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
action :install
end

directory "/var/log/bind/" do
directory node[:bind9][:log_path] do
owner node[:bind9][:user]
group node[:bind9][:user]
mode 0755
Expand Down
2 changes: 1 addition & 1 deletion templates/default/named.conf.options.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ options {

logging {
channel default_log {
file "/var/log/bind/bind.log" versions 5 size 128M;
file "<%= node[:bind9][:log_path] %>/bind.log" versions 5 size 128M;
print-time yes;
print-severity yes;
print-category yes;
Expand Down