Use absolute path for vault root token file in devstack
I met with the following error when I was installing lastest version devstack for Barbican: +++ /opt/stack/barbican/devstack/lib/barbican:configure_vault_plugin:613 : cat vault_root_token_id cat: vault_root_token_id: No such file or directory Change-Id: Iaf81c6bf8ac42048b138360151f7df8fe70bc0cd
This commit is contained in:
parent
3f6cccae49
commit
960371a83b
|
@ -579,7 +579,7 @@ function install_vault {
|
|||
screen -d -m bash -c "vault server -dev -dev-listen-address=${HOST_IP}:8200 2>&1 >vault.log"
|
||||
|
||||
# get the root_token_id, use tempfile for counter
|
||||
TOKEN_ID_FILE="vault_root_token_id"
|
||||
TOKEN_ID_FILE="${BARBICAN_DIR}/vault_root_token_id"
|
||||
touch $TOKEN_ID_FILE
|
||||
|
||||
COUNTER=0
|
||||
|
@ -610,7 +610,7 @@ function install_vault {
|
|||
}
|
||||
|
||||
function configure_vault_plugin {
|
||||
root_token_id=`cat vault_root_token_id`
|
||||
root_token_id=`cat ${BARBICAN_DIR}/vault_root_token_id`
|
||||
iniset $BARBICAN_CONF secretstore enabled_secretstore_plugins vault_plugin
|
||||
iniset $BARBICAN_CONF vault_plugin root_token_id $root_token_id
|
||||
iniset $BARBICAN_CONF vault_plugin vault_url "http://${HOST_IP}:8200"
|
||||
|
|
Loading…
Reference in New Issue