Fix facter path
In Puppet 4 and in the PE edition, the Puppet tree is installed in `/opt/puppetlabs/...` and all commands can be reached from `/opt/puppetlabs/bin`.
This commit is contained in:
parent
f26199d962
commit
b58e16ed3d
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ def run_setup(module):
|
|||
|
||||
# Look for the path to the facter and ohai binary and set
|
||||
# the variable to that path.
|
||||
facter_path = module.get_bin_path('facter')
|
||||
facter_path = module.get_bin_path('facter', opt_dirs=['/opt/puppetlabs/bin'])
|
||||
ohai_path = module.get_bin_path('ohai')
|
||||
|
||||
# if facter is installed, and we can use --json because
|
||||
|
|
Loading…
Reference in a new issue