Merge "Create fernet repository for tokens on upgrade"
This commit is contained in:
commit
ed53369a6d
15
projects/10_keystone/from-newton/upgrade-keystone
Normal file
15
projects/10_keystone/from-newton/upgrade-keystone
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
# ``upgrade-keystone``
|
||||
|
||||
function configure_keystone_upgrade {
|
||||
local xtrace
|
||||
xtrace=$(set +o | grep xtrace)
|
||||
set -o xtrace
|
||||
|
||||
# Run `keysetone-manage fernet_setup` to ensure keystone has a fernet
|
||||
# key repository to encrypt and decrypt tokens.
|
||||
$KEYSTONE_BIN_DIR/keystone-manage --config-file $KEYSTONE_CONF fernet_setup
|
||||
|
||||
# reset to previous state
|
||||
$xtrace
|
||||
}
|
Loading…
Reference in New Issue
Block a user