Skip to content

Conversation

@ehelms
Copy link
Member

@ehelms ehelms commented Apr 3, 2025

Copy link
Contributor

@ianballou ianballou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patching in this change specifically causes an error for the installer:

[root@centos9-proxy-devel foreman_proxy_content]# foreman-installer --full-help
/usr/share/gems/gems/kafo-7.6.0/lib/kafo/puppet_module.rb:70:in `parse': No Puppet module parser is installed and no cache of the file /usr/share/foreman-installer/modules/foreman_proxy_content/manifests/init.pp is available. Please check debug logs and install optional dependencies for the parser. (Kafo::ParserError)
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/configuration.rb:133:in `block in modules'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/configuration.rb:133:in `map'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/configuration.rb:133:in `modules'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/kafo_configure.rb:262:in `modules'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/kafo_configure.rb:266:in `module'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/hook_context.rb:113:in `module_present?'
	from /usr/share/foreman-installer/hooks/boot/20-certs_update.rb:2:in `block (4 levels) in load'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/hooking.rb:36:in `instance_eval'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/hooking.rb:36:in `block (4 levels) in load'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/hook_context.rb:19:in `instance_eval'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/hook_context.rb:19:in `execute'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/hooking.rb:67:in `block in execute'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/hooking.rb:65:in `each'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/hooking.rb:65:in `execute'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/kafo_configure.rb:144:in `initialize'
	from /usr/share/gems/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `new'
	from /usr/share/gems/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `run'
	from /usr/share/gems/gems/kafo-7.6.0/lib/kafo/kafo_configure.rb:54:in `run'
	from /sbin/foreman-installer:8:in `<main>'

No error is caused by theforeman/puppet-foreman_proxy#863, however.

@ehelms ehelms force-pushed the set-client-endpoint branch from 8dcdbde to 5d6c760 Compare April 9, 2025 13:56
@ehelms ehelms marked this pull request as ready for review April 9, 2025 13:56
@ehelms
Copy link
Member Author

ehelms commented Apr 9, 2025

Patching in this change specifically causes an error for the installer:

When you patch a puppet module in production you have to install the puppet-strings gem:

/opt/puppetlabs/puppet/bin/gem install puppet-strings

Copy link
Contributor

@ianballou ianballou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't able to do a full test on my proxy since the CNAME wasn't set up right for the installer, but looking at the use of client_facing_servername, this appears correct to me.

@ehelms ehelms merged commit 9d8dc8f into theforeman:master Apr 9, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants