Commit 386a413d authored by Tim Smith's avatar Tim Smith
Browse files

Use rsyslog user / group for the working directory

This prevents the cookbook from changing valid permissions on the working dir like this:

directory[/var/spool/rsyslog] action create
  change owner from 'syslog' to 'root'
  change group from 'adm' to 'root'
parent dfca8198
...@@ -32,8 +32,8 @@ directory "#{node['rsyslog']['config_prefix']}/rsyslog.d" do ...@@ -32,8 +32,8 @@ directory "#{node['rsyslog']['config_prefix']}/rsyslog.d" do
end end
directory node['rsyslog']['working_dir'] do directory node['rsyslog']['working_dir'] do
owner 'root' owner node['rsyslog']['user']
group 'root' group node['rsyslog']['group']
mode '0700' mode '0700'
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