Do not recreate Blazar DB if using preconfigured
Most other services already gate the DB bootstrap operations with the 'use_preconfigured_databases' variable; Blazar did not. Change-Id: I772b1cb92612c7e6936f052ed9947f93582f264c
This commit is contained in:
parent
b7098faf88
commit
7d28476177
@ -11,6 +11,8 @@
|
||||
name: "{{ blazar_database_name }}"
|
||||
run_once: True
|
||||
delegate_to: "{{ groups['blazar-api'][0] }}"
|
||||
when:
|
||||
- not use_preconfigured_databases | bool
|
||||
|
||||
- name: Creating blazar database user and setting permissions
|
||||
become: true
|
||||
@ -28,6 +30,8 @@
|
||||
append_privs: "yes"
|
||||
run_once: True
|
||||
delegate_to: "{{ groups['blazar-api'][0] }}"
|
||||
when:
|
||||
- not use_preconfigured_databases | bool
|
||||
|
||||
# TODO(egonzalez) Use os_nova_host_aggregate ansible module once ansible min version is 2.3
|
||||
# http://docs.ansible.com/ansible/os_nova_host_aggregate_module.html
|
||||
|
Loading…
Reference in New Issue
Block a user