Bug #2268
closedPuppetSetting doesn't make it possible to mix puppet gem + package
Description
PuppetSetting (added in #1994) shells out to puppet master --configprint
, but makes it difficult to use puppet from a gem over an installed puppet system package. We need this capability for our Jenkins slaves, where we want to prefer Puppet under rvm.
It prepends /usr/bin, /usr/sbin and /opt/puppet/bin to PATH, which means it always prefers the system version rather than respecting my PATH.
When under Bundler, backticks are caught by Bundler and it executes the command in the context of the bundle. This causes problems particularly under different Ruby versions, where the Gemfile.lock that Bundler's forcing puppet to run under isn't applicable to the version of Ruby used for the system package. We should use Bundler.with_clean_env usually.
Updated by Dominic Cleal over 11 years ago
- Status changed from Assigned to Ready For Testing
https://github.com/theforeman/foreman/pull/445
Seems to have fixed the last of the Jenkins build failures.
Updated by Dominic Cleal over 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset fb0998a0ecf9e78822d321044b8eed89cbe7a9f9.