1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Ton Kersten 2016-02-19 10:38:23 +01:00 committed by Matt Clay
parent f26199d962
commit b58e16ed3d

View file

@ -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