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 .conf file modes for Windows forwarders #114

Merged
merged 1 commit into from
May 26, 2017

Conversation

natemccurdy
Copy link
Contributor

Prior to this, the file mode for inputs.conf, outputs.conf, and web.conf
would change from 0664 to 0644 on every Puppet run.

On Windows, we don't want to set the file mode for these files as
handling the permissions on these would best be left for the
puppetlabs/acl module.

Prior to this, the file mode for inputs.conf, outputs.conf, and web.conf
wouuld change from `0664` to `0644` on every Puppet run.

On Windows, we don't want to set the file mode for these files as
handling the permissions on these would best be left for the
puppetlabs/acl module.
@@ -156,7 +156,10 @@
File {
owner => $splunk_user,
group => $splunk_user,
mode => '0644',
mode => $facts['kernel'] ? {
Copy link
Member

Choose a reason for hiding this comment

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

+1 for using the new facts hash

@bastelfreak
Copy link
Member

Hi @natemccurdy, thanks for the PR!

@bastelfreak bastelfreak merged commit d627d2e into voxpupuli:master May 26, 2017
@bastelfreak bastelfreak added the bug Something isn't working label May 26, 2017
@natemccurdy natemccurdy deleted the windows_file_mode branch May 27, 2017 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants