saz / puppet-sudo

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

Error on sudoers.d/file delete the original file too #184

Closed fduranti closed 6 years ago

fduranti commented 7 years ago

When changing an existing file, if the visudo -c check fail it will delete also the original file. A nice way would be to use validate_cmd in file resource to do the single file validation and eventually use visudo -c (without filename) to do a complete validation.

I'm creating a PR for this that could help also with #125

saz commented 6 years ago

This should be fixed in the current master