saz / puppet-sudo

Manage sudo with Puppet on Debian-, RedHat- and SUSE-based linux distributions and some BSDs
Other
105 stars 215 forks source link

allow setting the mode of $config_dir and $config_file #201

Closed aeber closed 6 years ago

aeber commented 6 years ago

Sometimes there are cases where you need to have different permissions on the sudoers.d file. So why not make them configurable?

This would partially solve #196 as well.

jplindquist commented 6 years ago

+1 on this as well, came here looking for an option to set permissions on the config directory to stop conflicting permissions laid down by the sudo rpm. As an example, any time there's an update to the package (i.e. patching), it resets the permissions on the config dir (/etc/sudoers.d) to 0750, so it would be nice to be able to configure this option to sync up with the package so we don't always see pending changes in the catalog after patching, etc