Commit 0fc8b88b authored by Tim Smith's avatar Tim Smith
Browse files

Create all directories and configs with root/root as owner

This matches distro practice
parent c9ecbaed
......@@ -37,8 +37,6 @@ elsif !node['rsyslog']['server']
:server => rsyslog_server,
:protocol => node['rsyslog']['protocol']
)
owner node["rsyslog"]["user"]
group node["rsyslog"]["group"]
mode 0644
notifies :restart, "service[#{node['rsyslog']['service_name']}]"
end
......
......@@ -22,14 +22,10 @@ package "rsyslog" do
end
directory "/etc/rsyslog.d" do
owner node['rsyslog']['user']
group node['rsyslog']['group']
mode 0755
end
directory "/var/spool/rsyslog" do
owner node['rsyslog']['user']
group node['rsyslog']['group']
mode 0755
end
......@@ -37,8 +33,6 @@ end
# include of things in /etc/rsyslog.d/*
template "/etc/rsyslog.conf" do
source 'rsyslog.conf.erb'
owner node['rsyslog']['user']
group node['rsyslog']['group']
mode 0644
variables(:protocol => node['rsyslog']['protocol'])
notifies :restart, "service[#{node['rsyslog']['service_name']}]"
......@@ -47,8 +41,6 @@ end
template "/etc/rsyslog.d/50-default.conf" do
source "50-default.conf.erb"
backup false
owner node['rsyslog']['user']
group node['rsyslog']['group']
mode 0644
notifies :restart, "service[#{node['rsyslog']['service_name']}]"
end
......
......@@ -22,8 +22,6 @@ node.set['rsyslog']['server'] = true
include_recipe "rsyslog"
directory node['rsyslog']['log_dir'] do
owner node['rsyslog']['user']
group node['rsyslog']['group']
recursive true
mode 0755
end
......@@ -35,8 +33,6 @@ template "/etc/rsyslog.d/35-server-per-host.conf" do
:log_dir => node['rsyslog']['log_dir'],
:per_host_dir => node['rsyslog']['per_host_dir']
)
owner node["rsyslog"]["user"]
group node["rsyslog"]["group"]
mode 0644
notifies :restart, "service[#{node['rsyslog']['service_name']}]"
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment