The /opt/puppetlabs/bin directory has already been appended to the secure_path for the sudoers template. It should also be added to all the static pre-generated files used for the various operating systems, since those are the files that will be most used and will have the biggest benefit of allowing running sudo puppet instead of having to rely on using the full path.
This is a pull request for an issue originally reported as #177.
The
/opt/puppetlabs/bin
directory has already been appended to the secure_path for the sudoers template. It should also be added to all the static pre-generated files used for the various operating systems, since those are the files that will be most used and will have the biggest benefit of allowing runningsudo puppet
instead of having to rely on using the full path.This is a pull request for an issue originally reported as #177.