mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user