Allow the execution of leapp without RHSM subscription.
There are a set of workarounds which can be executed in order skip the RHSM subscription requirement to run the Leapp tool. This patch includes an option leapp_unsubscribed, a boolean, that when setted to true enables an environment variable LEAPP_DEVEL_SKIP_RHSM which skips the subscription check. Change-Id: Ifca276dabad3c87f86681704d4fad0658c66f4b2
This commit is contained in:
parent
5b100af2c7
commit
7866adeba0
@ -254,5 +254,9 @@ roles_upgrade_order: '__undefined__'
|
||||
# Packet loss threshold for a ping test
|
||||
loss_threshold: 1
|
||||
|
||||
# Run leapp upgrade without RHSM subscription
|
||||
# Requires workarounds being applied.
|
||||
leapp_unsubscribed: false
|
||||
|
||||
# Leapp OS upgrade variables
|
||||
leapp_unregister: true
|
||||
|
@ -41,7 +41,7 @@
|
||||
- name: Run leapp upgrade (download packages)
|
||||
shell: |
|
||||
set -o pipefail
|
||||
leapp upgrade --debug 2>&1 | \
|
||||
{{ 'LEAPP_DEVEL_SKIP_RHSM=1 sudo -E' if leapp_unsubscribed|bool and upgrade_workarounds|bool }} leapp upgrade --debug 2>&1 | \
|
||||
tee {{ working_dir }}/undercloud_leapp_upgrade.log
|
||||
|
||||
- name: Reboot the undercloud
|
||||
@ -50,4 +50,6 @@
|
||||
- name: Unregister the node once the OS was upgraded if desired
|
||||
redhat_subscription:
|
||||
state: absent
|
||||
when: leapp_unregister|bool
|
||||
when:
|
||||
- leapp_unregister|bool
|
||||
- not leapp_unsubscribed|bool
|
||||
|
Loading…
Reference in New Issue
Block a user