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:
Jason 2019-02-20 15:44:52 -06:00 committed by Jason Anderson
parent b7098faf88
commit 7d28476177
No known key found for this signature in database
GPG Key ID: 9207452BF63947DD

View File

@ -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