mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-17 10:10:30 +00:00
Allow loading into remote databases
This commit is contained in:
parent
83b865ae14
commit
3bc30263c3
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ include:
|
||||||
|
|
||||||
{{ state_id }}_load:
|
{{ state_id }}_load:
|
||||||
cmd.wait:
|
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:
|
- watch:
|
||||||
- file: {{ state_id }}_schema
|
- file: {{ state_id }}_schema
|
||||||
- mysql_database: {{ state_id }}
|
- mysql_database: {{ state_id }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue