From d43d2bc219b42c0e19735f696db45a68bcdb269a Mon Sep 17 00:00:00 2001 From: Ton Kersten Date: Fri, 19 Feb 2016 10:38:23 +0100 Subject: [PATCH] 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`. --- system/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/setup.py b/system/setup.py index a28c037c745..c3f19eda170 100644 --- a/system/setup.py +++ b/system/setup.py @@ -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