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

check-syntax statement not working on FreeBSD. #175

Closed madelaney closed 7 years ago

madelaney commented 7 years ago

Using version 4.1.0 of the module, I noticed that the execute statement exec {"sudo-syntax-check for file ${cur_file}": results in the following puppet error: Could not find command 'visudo'.

I believe this is due to the fact that, on FreeBSD, the command visudo is installed into '/usr/local/sbin' and the execute path is set to only '/bin', '/sbin', '/usr/bin', '/usr/sbin'.

stblassitude commented 7 years ago

See pull request #178.

saz commented 7 years ago

Fixed with commit d41e6dad71e34aa8f1360fee6ce934a9fd247435