Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Log folder permission. #83

Merged
merged 2 commits into from
Apr 8, 2015
Merged

Fix Log folder permission. #83

merged 2 commits into from
Apr 8, 2015

Conversation

phcyso
Copy link
Contributor

@phcyso phcyso commented Mar 12, 2015

If folder owner set to root but rsyslog is running as 'syslog' user then it can not write these files and silently fails.

If folder owner set to root but rsyslog is running as 'syslog' user then it can not write these files and silently fails.
@phcyso
Copy link
Contributor Author

phcyso commented Mar 12, 2015

This is related to PR #51 and issue #70 the changes mentioned in them don't seem to have been merged in.

@@ -23,8 +23,8 @@
include_recipe 'rsyslog::default'

directory node['rsyslog']['log_dir'] do
owner 'root'
group 'root'
owner node['rsyslog']['user'] ? node['rsyslog']['user'] : 'root'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to just make this owner node['rsyslog']['user'] and group node['rsyslog']['group'] rather than using if-then logic because these attributes will always be set (since they are defined in attributes/default.rb)

@phcyso
Copy link
Contributor Author

phcyso commented Apr 8, 2015

@eherot I have updated the pull request to take into account your comments,

thank you.

@eherot
Copy link
Contributor

eherot commented Apr 8, 2015

👍

tas50 added a commit that referenced this pull request Apr 8, 2015
Fix Log folder permission.
@tas50 tas50 merged commit 5bd297d into sous-chefs:master Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants