Disable security role during major upgrades
This commit disables the security hardening role during major upgrades by creating a temporary file. It removes the file after a sucessful upgrade. Change-Id: Ib32e0e317a84a443fb7fc9d3a364a16bd469b6e3 Closes-Bug: #1568029
This commit is contained in:
parent
1b4550b0b8
commit
51441fef44
@ -70,13 +70,23 @@ function pre_flight {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function disable_security_hardening {
|
||||||
|
echo 'apply_security_hardening: False' > /etc/openstack_deploy/user_zzz_disable_security_hardening.yml
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function reset_security_hardening {
|
||||||
|
rm /etc/openstack_deploy/user_zzz_disable_security_hardening.yml
|
||||||
|
}
|
||||||
|
|
||||||
## Main ----------------------------------------------------------------------
|
## Main ----------------------------------------------------------------------
|
||||||
|
|
||||||
function main {
|
function main {
|
||||||
pre_flight
|
pre_flight
|
||||||
|
disable_security_hardening
|
||||||
check_for_juno
|
check_for_juno
|
||||||
check_for_kilo
|
check_for_kilo
|
||||||
|
reset_security_hardening
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
Loading…
x
Reference in New Issue
Block a user