Merge "Create fernet repository for tokens on upgrade"

This commit is contained in:
Jenkins 2016-11-01 16:22:06 +00:00 committed by Gerrit Code Review
commit ed53369a6d

View 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
}