Merge "[Queens/Pike] Re-registry with new rhel_reg parameters on upgrade." into stable/queens

This commit is contained in:
Zuul 2018-10-17 17:53:59 +00:00 committed by Gerrit Code Review
commit d482d68c62
3 changed files with 9 additions and 1 deletions

View File

@ -11,3 +11,7 @@ parameter_defaults:
UpgradeInitCommonCommand: ''
UpgradeInitCommand: ''
UpgradeRemoveUnusedPackages: false
# Unset RHEL registration parameters to avoid
# re-registering on future stack updates.
RHELRegistrationActions: 'CREATE'
rhel_reg_force: ""

View File

@ -21,3 +21,7 @@ parameter_defaults:
# Remove the element os-net-config config.json https://bugs.launchpad.net/tripleo/+bug/1758161/
rm /usr/libexec/os-apply-config/templates/etc/os-net-config/config.json || true
UpgradeRemoveUnusedPackages: false
# Add RHEL Registration force to re-register with the new key and repos
# also modify the actions to run the resource on stack UPDATE
RHELRegistrationActions: ['CREATE', 'UPDATE']
rhel_reg_force: "True"

View File

@ -7,7 +7,7 @@ set -o pipefail
OK=/mnt/state/var/lib/rhsm/rhsm.ok
if [ -e $OK ] ; then
if [ -e $OK -a -z "${REG_FORCE:-}" ] ; then
exit 0
fi