Skip to content
Snippets Groups Projects
Commit 4e62c583 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Check empty passwords in $CONFIG_DIR/passwords.yml"

parents d1e99600 8595707a
No related branches found
No related tags found
No related merge requests found
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
or inventory_hostname in groups['neutron-metadata-agent']) or inventory_hostname in groups['neutron-metadata-agent'])
- ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04' - ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04'
- name: Checking empty passwords in /etc/kolla/passwords.yml. Run kolla-genpwd is this task fails - name: Checking empty passwords in passwords.yml. Run kolla-genpwd if this task fails
local_action: command grep '^[^#].*:\s*$' /etc/kolla/passwords.yml local_action: command grep '^[^#].*:\s*$' "{{ CONFIG_DIR }}/passwords.yml"
register: result register: result
changed_when: false changed_when: false
failed_when: result.stdout != "" failed_when: result.stdout | regex_replace('(.*nova_ssh_key.*)', '') | search(":")
...@@ -160,6 +160,6 @@ case "$1" in ...@@ -160,6 +160,6 @@ case "$1" in
;; ;;
esac esac
CONFIG_OPTS="-e @${CONFIG_DIR}/globals.yml -e @${CONFIG_DIR}/passwords.yml" CONFIG_OPTS="-e @${CONFIG_DIR}/globals.yml -e @${CONFIG_DIR}/passwords.yml -e CONFIG_DIR=${CONFIG_DIR}"
CMD="ansible-playbook -i $INVENTORY $CONFIG_OPTS $EXTRA_OPTS $PLAYBOOK $VERBOSITY" CMD="ansible-playbook -i $INVENTORY $CONFIG_OPTS $EXTRA_OPTS $PLAYBOOK $VERBOSITY"
process_cmd process_cmd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment