Evaluate PASSWORDS_FILE later
Currently seting --configdir on kolla-ansible CLI doesn't set properly the path for the passwords file. Change-Id: I38d215b721ec256be6cfdd6313b5ffb90c2a3f4c Closes-Bug: #1887180 Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>
This commit is contained in:
parent
904f1c9bd9
commit
bf985930d0
6
releasenotes/notes/bug-1887180-89450a4185c7449d.yaml
Normal file
6
releasenotes/notes/bug-1887180-89450a4185c7449d.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixes ``--configdir`` parameter to apply to default ``passwords.yml``
|
||||
location.
|
||||
`LP#1887180 <https://launchpad.net/bugs/1887180>`__
|
@ -198,7 +198,6 @@ PLAYBOOK="${BASEDIR}/ansible/site.yml"
|
||||
VERBOSITY=
|
||||
EXTRA_OPTS=${EXTRA_OPTS}
|
||||
CONFIG_DIR="/etc/kolla"
|
||||
PASSWORDS_FILE="${CONFIG_DIR}/passwords.yml"
|
||||
DANGER_CONFIRM=
|
||||
INCLUDE_IMAGES=
|
||||
INCLUDE_DEV=
|
||||
@ -454,6 +453,7 @@ esac
|
||||
|
||||
GLOBALS_DIR="${CONFIG_DIR}/globals.d"
|
||||
EXTRA_GLOBALS=$(find ${GLOBALS_DIR} -maxdepth 1 -type f -name '*.yml' -printf ' -e @%p' 2>/dev/null)
|
||||
PASSWORDS_FILE="${PASSWORDS_FILE:-${CONFIG_DIR}/passwords.yml}"
|
||||
CONFIG_OPTS="-e @${CONFIG_DIR}/globals.yml ${EXTRA_GLOBALS} -e @${PASSWORDS_FILE} -e CONFIG_DIR=${CONFIG_DIR}"
|
||||
CMD="ansible-playbook -i $INVENTORY $CONFIG_OPTS $EXTRA_OPTS $PLAYBOOK $VERBOSITY"
|
||||
process_cmd
|
||||
|
Loading…
Reference in New Issue
Block a user