Use database_user_create in Heat bootstrap
The register operation was using database_user which is also a global variable in group_vars/all.yml. This results in Heat being undeployable because database_user is overwritten. Change-Id: I78b2db34b7c99142040390c7258b7e81d3770835 Closes-bug: #1491980
This commit is contained in:
parent
a2d4a9481c
commit
bcde30f379
@ -22,9 +22,9 @@
|
||||
host='%'
|
||||
priv='{{ heat_database_name }}.*:ALL'
|
||||
append_privs='yes'"
|
||||
register: database_user
|
||||
changed_when: "{{ database.stdout.find('localhost | SUCCESS => ') != -1 and (database_user.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||
failed_when: database_user.stdout.split()[2] != 'SUCCESS'
|
||||
register: database_user_create
|
||||
changed_when: "{{ database.stdout.find('localhost | SUCCESS => ') != -1 and (database_user_create.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
||||
failed_when: database_user_create.stdout.split()[2] != 'SUCCESS'
|
||||
run_once: True
|
||||
|
||||
- name: Starting Heat bootstrap container
|
||||
|
Loading…
x
Reference in New Issue
Block a user