Merge "[Queens/Pike] Re-registry with new rhel_reg parameters on upgrade." into stable/queens
This commit is contained in:
commit
d482d68c62
|
@ -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: ""
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue