Merge "Parametrize UpgradeLeappDevelSkip to pass multiple env variables." into stable/stein

This commit is contained in:
Zuul 2019-08-27 18:53:34 +00:00 committed by Gerrit Code Review
commit 1239e5a68c
1 changed files with 8 additions and 6 deletions

View File

@ -59,10 +59,12 @@ parameters:
description: Print debugging output when running Leapp description: Print debugging output when running Leapp
type: boolean type: boolean
default: true default: true
UpgradeLeappDevelSkipRhsm: UpgradeLeappDevelSkip:
description: Skip RHSM when running Leapp in development/testing. description: |
type: boolean Skip Leapp checks by setting env variables when running Leapp in
default: false development/testing. For example, LEAPP_DEVEL_SKIP_RHSM=1.
type: string
default: ''
UpgradeLeappRebootTimeout: UpgradeLeappRebootTimeout:
description: Timeout (seconds) for the OS upgrade phase via Leapp description: Timeout (seconds) for the OS upgrade phase via Leapp
type: number type: number
@ -97,7 +99,7 @@ outputs:
set_fact: set_fact:
upgrade_leapp_enabled: {get_param: UpgradeLeappEnabled} upgrade_leapp_enabled: {get_param: UpgradeLeappEnabled}
upgrade_leapp_debug: {get_param: UpgradeLeappDebug} upgrade_leapp_debug: {get_param: UpgradeLeappDebug}
upgrade_leapp_devel_skip_rhsm: {get_param: UpgradeLeappDevelSkipRhsm} upgrade_leapp_devel_skip: {get_param: UpgradeLeappDevelSkip}
upgrade_leapp_reboot_timeout: {get_param: UpgradeLeappRebootTimeout} upgrade_leapp_reboot_timeout: {get_param: UpgradeLeappRebootTimeout}
- name: system_upgrade_prepare step 3 - name: system_upgrade_prepare step 3
@ -133,7 +135,7 @@ outputs:
block: block:
- name: run leapp upgrade (download packages) - name: run leapp upgrade (download packages)
shell: > shell: >
{% if upgrade_leapp_devel_skip_rhsm|default(false) %}LEAPP_DEVEL_SKIP_RHSM=1{% endif %} {% if upgrade_leapp_devel_skip|default(false) %}{{ upgrade_leapp_devel_skip }}{% endif %}
leapp upgrade leapp upgrade
{% if upgrade_leapp_debug|default(true) %}--debug{% endif %} {% if upgrade_leapp_debug|default(true) %}--debug{% endif %}
when: upgrade_leapp_enabled when: upgrade_leapp_enabled