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'] ...@@ -37,8 +37,6 @@ elsif !node['rsyslog']['server']
:server => rsyslog_server, :server => rsyslog_server,
:protocol => node['rsyslog']['protocol'] :protocol => node['rsyslog']['protocol']
) )
owner node["rsyslog"]["user"]
group node["rsyslog"]["group"]
mode 0644 mode 0644
notifies :restart, "service[#{node['rsyslog']['service_name']}]" notifies :restart, "service[#{node['rsyslog']['service_name']}]"
end end
......
...@@ -22,14 +22,10 @@ package "rsyslog" do ...@@ -22,14 +22,10 @@ package "rsyslog" do
end end
directory "/etc/rsyslog.d" do directory "/etc/rsyslog.d" do
owner node['rsyslog']['user']
group node['rsyslog']['group']
mode 0755 mode 0755
end end
directory "/var/spool/rsyslog" do directory "/var/spool/rsyslog" do
owner node['rsyslog']['user']
group node['rsyslog']['group']
mode 0755 mode 0755
end end
...@@ -37,8 +33,6 @@ end ...@@ -37,8 +33,6 @@ end
# include of things in /etc/rsyslog.d/* # include of things in /etc/rsyslog.d/*
template "/etc/rsyslog.conf" do template "/etc/rsyslog.conf" do
source 'rsyslog.conf.erb' source 'rsyslog.conf.erb'
owner node['rsyslog']['user']
group node['rsyslog']['group']
mode 0644 mode 0644
variables(:protocol => node['rsyslog']['protocol']) variables(:protocol => node['rsyslog']['protocol'])
notifies :restart, "service[#{node['rsyslog']['service_name']}]" notifies :restart, "service[#{node['rsyslog']['service_name']}]"
...@@ -47,8 +41,6 @@ end ...@@ -47,8 +41,6 @@ end
template "/etc/rsyslog.d/50-default.conf" do template "/etc/rsyslog.d/50-default.conf" do
source "50-default.conf.erb" source "50-default.conf.erb"
backup false backup false
owner node['rsyslog']['user']
group node['rsyslog']['group']
mode 0644 mode 0644
notifies :restart, "service[#{node['rsyslog']['service_name']}]" notifies :restart, "service[#{node['rsyslog']['service_name']}]"
end end
......
...@@ -22,8 +22,6 @@ node.set['rsyslog']['server'] = true ...@@ -22,8 +22,6 @@ node.set['rsyslog']['server'] = true
include_recipe "rsyslog" include_recipe "rsyslog"
directory node['rsyslog']['log_dir'] do directory node['rsyslog']['log_dir'] do
owner node['rsyslog']['user']
group node['rsyslog']['group']
recursive true recursive true
mode 0755 mode 0755
end end
...@@ -35,8 +33,6 @@ template "/etc/rsyslog.d/35-server-per-host.conf" do ...@@ -35,8 +33,6 @@ template "/etc/rsyslog.d/35-server-per-host.conf" do
:log_dir => node['rsyslog']['log_dir'], :log_dir => node['rsyslog']['log_dir'],
:per_host_dir => node['rsyslog']['per_host_dir'] :per_host_dir => node['rsyslog']['per_host_dir']
) )
owner node["rsyslog"]["user"]
group node["rsyslog"]["group"]
mode 0644 mode 0644
notifies :restart, "service[#{node['rsyslog']['service_name']}]" notifies :restart, "service[#{node['rsyslog']['service_name']}]"
end 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