Skip to content
Snippets Groups Projects
Commit 3bc30263 authored by jam13's avatar jam13
Browse files

Allow loading into remote databases

parent 83b865ae
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ include:
{{ state_id }}_load:
cmd.wait:
- name: mysql -u {{ mysql_salt_user }} -p{{ mysql_salt_pass }} {{ database }} < /etc/mysql/{{ database }}.schema
- name: mysql -u {{ mysql_salt_user }} -h{{ mysql_host }} -p{{ mysql_salt_pass }} {{ database }} < /etc/mysql/{{ database }}.schema
- watch:
- file: {{ state_id }}_schema
- mysql_database: {{ state_id }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment