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

secure_path doesn't have puppet binary #177

Closed disassembler closed 7 years ago

disassembler commented 7 years ago

This commit was made a while back:

https://github.com/saz/puppet-sudo/commit/b98b1249ce7a97bbd1dd6cb5d5415b0ee8b7a258

But it does nothing, because /etc/sudoers uses static files and those static files haven't had the path updated. (in files directory).

To allow running sudo puppet agent -t works without having specify the full path every time, /etc/sudoers should be updated to contain the secure_path.

saz commented 7 years ago

Fixed with commit cb8d1165e00ab9ecbd7c06f0b2bf55d6dab51a98