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`.
pull/18777/head
Ton Kersten 9 years ago committed by Matt Clay
parent f26199d962
commit b58e16ed3d

@ -87,7 +87,7 @@ def run_setup(module):
# Look for the path to the facter and ohai binary and set # Look for the path to the facter and ohai binary and set
# the variable to that path. # 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') ohai_path = module.get_bin_path('ohai')
# if facter is installed, and we can use --json because # if facter is installed, and we can use --json because

Loading…
Cancel
Save