From 708b947c6bbfe504536aad5d7d70eda34de1a083 Mon Sep 17 00:00:00 2001 From: Shimon Shtein Date: Thu, 1 Aug 2024 15:11:25 +0300 Subject: [PATCH] Direct the users to use the new CA refresh script instead of the rpm --- packages/katello/katello/hostname-change.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/katello/katello/hostname-change.rb b/packages/katello/katello/hostname-change.rb index e235d68024..3de2948aa1 100644 --- a/packages/katello/katello/hostname-change.rb +++ b/packages/katello/katello/hostname-change.rb @@ -143,8 +143,7 @@ def next_steps_message You will have to install the new bootstrap rpm and reregister all clients and #{@plural_proxy} with subscription-manager (update organization and environment arguments appropriately): - yum remove -y katello-ca-consumer* - rpm -Uvh http://#{@new_hostname}/pub/katello-ca-consumer-latest.noarch.rpm + set -o pipefail && curl -sS "http://#{@new_hostname}/unattended/public/foreman-ca-refresh" | bash subscription-manager register --org="Default_Organization" --environment="Library" --force Then reattach subscriptions to the client(s) and run: