Delegate the database schema import to monasca_db_setup_host
In order to remove the requirement to install the MariaDB client libraries on all monasca hosts, we need to isolate all DB actions on monasca_db_setup_host which has those libraries. Change-Id: I269a933a7e26a3f4564d18d6f05cfce4b4eafe27
This commit is contained in:
parent
9fc6ee6cb8
commit
f9414ff0cb
|
@ -34,6 +34,7 @@
|
|||
name: "{{ monasca_galera_database }}"
|
||||
state: import
|
||||
target: "/opt/mon_mysql.sql"
|
||||
delegate_to: "{{ monasca_db_setup_host }}"
|
||||
no_log: True
|
||||
|
||||
- name: Restart monasca services
|
||||
|
|
|
@ -44,4 +44,5 @@
|
|||
group: root
|
||||
mode: 0640
|
||||
src: mon_mysql.sql.j2
|
||||
delegate_to: "{{ monasca_db_setup_host }}"
|
||||
notify: Create monasca database schema
|
||||
|
|
Loading…
Reference in New Issue