-
Notifications
You must be signed in to change notification settings - Fork 290
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
Allow for management of file and directory permissions #825
Comments
|
@jplindquist I'm always in favour of modules "extreme" reusability (so that users don't have to fork them to be able to fit more or less special use cases) so I think a PR with updated docs and tests would be welcomed, what do you think @ghoneycutt ? |
|
@jplindquist Thank you for submitting this! I would like the sensu package to handle that with regards to the files it manages under /opt/sensu, so I would not want to do any kind of recursion through that. Allowing people to specify their own defaults for /opt/sensu, /etc/sensu, etc would certainly be welcomed. The default values should be default for the whole module and not OS specific and should align with what is currently done with the sensu package. |
|
@jplindquist Are you still interested in submitting a PR? |
|
Yeah, sorry. Got distracted and busy with the holidays. Planning to get back to this soon |
|
Just doing some house cleaning on the outstanding issues. Your contributions are most welcome and we look forward to adding this support! |
|
Released in v2.49.0 |
Description of problem
$dir_modeand$file_modeare both initialized, and set to their respective defaults depending on the OS here. This could be improved upon by having a configurable option within the class which defaults to the same values if not explicitly defined so it's backwards compatible. This would allow users to explicitly manage their own dir and file permissions to line up with other types of management systems where applicable (i.e. rpm packages).Command used and debugging output
Platform and version information
Anything else to add that you think will be helpful?
I'd be happy to submit a PR if this would be something that would be worthwhile.
The text was updated successfully, but these errors were encountered: