Skip to content

Commit 16b9b83

Browse files
chris1984claude
authored andcommitted
Fix facter binary conflict when installing puppet-strings
The previous fix (user_install: false) correctly moved the puppet-strings gem install into the puppetlabs gem path to avoid a load path conflict. However, puppet-strings 5.0.0 depends on puppet, which depends on facter, and the facter gem tries to install a binary to /opt/puppetlabs/puppet/bin/facter that already exists from the puppet-agent package. Adding force: true allows gem to overwrite the conflicting binary. This is safe because the facter gem and puppet-agent's facter are compatible. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6b330da commit 16b9b83

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • roles/foreman_installer_devel_scenario/tasks

roles/foreman_installer_devel_scenario/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
name: puppet-strings
5858
executable: /opt/puppetlabs/puppet/bin/gem
5959
user_install: false
60+
force: true
6061

6162
- name: 'Install puppet/rhsm puppet module'
6263
command: "/opt/puppetlabs/bin/puppet module install puppet-rhsm --target-dir {{ foreman_installer_devel_scenario_modules }}"

0 commit comments

Comments
 (0)