Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ fi
end
elsif @subman_setup_scenario == 'provisioning'
if plugin_present?('katello')
server_hostname = @host.content_source.rhsm_url.host
server_hostname = @host.content_source.registration_url.host
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using registration_url.host here ensures that it uses the hostname of the load balancer, not of the underlying smart proxy.

server_port = @host.content_source.rhsm_url.port
server_prefix = @host.content_source.rhsm_url.path
repo_ca_cert = "$KATELLO_SERVER_CA_CERT"
rhsm_baseurl = @host.content_source.pulp_content_url
rhsm_baseurl = @host.content_source.load_balancer_pulp_content_url
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added load_balancer_pulp_content_url which is the same as pulp_content_url except it uses registration_url as the base instead of setting(SmartProxy::PULP3_FEATURE, 'content_app_url'). Hopefully that doesn't break anything.

else
server_hostname = "subscription.rhsm.redhat.com"
server_port = "443"
Expand Down
Loading