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:
Jesse Pretorius 2018-09-21 14:34:36 +01:00
parent 9fc6ee6cb8
commit f9414ff0cb
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -44,4 +44,5 @@
group: root
mode: 0640
src: mon_mysql.sql.j2
delegate_to: "{{ monasca_db_setup_host }}"
notify: Create monasca database schema