Check empty passwords in /etc/kolla/passwords.yml in prechecks
This patch set makes "kolla-ansible prechecks" flag an error if
any password is empty in /etc/kolla/passwords.yml.
Change-Id: I87dee25b79c97be64ca49a5638c7f5a30d4cf464
Closes-Bug: #1563506
(cherry picked from commit c7e261c8c2
)
This commit is contained in:
parent
2b78f3e0cd
commit
75be755b44
|
@ -34,3 +34,9 @@
|
|||
or inventory_hostname in groups['neutron-l3-agent']
|
||||
or inventory_hostname in groups['neutron-metadata-agent'])
|
||||
- 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
|
||||
local_action: command grep '^[^#].*:\s*$' /etc/kolla/passwords.yml
|
||||
register: result
|
||||
changed_when: false
|
||||
failed_when: result.stdout != ""
|
||||
|
|
Loading…
Reference in New Issue