mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-17 10:10:30 +00:00
refactor(salt-lint): fix violation
``` [213] SaltStack recommends using cmd.run together with onchanges, rather than cmd.wait mysql/database.sls:62 cmd.wait: ```
This commit is contained in:
parent
d9a2eb505b
commit
7b62a627e0
1 changed files with 2 additions and 2 deletions
|
@ -59,9 +59,9 @@ include:
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
|
|
||||||
{{ state_id }}_load:
|
{{ state_id }}_load:
|
||||||
cmd.wait:
|
cmd.run:
|
||||||
- name: mysql -u {{ mysql_salt_user }} -h{{ mysql_host }} {% if mysql_salt_pass %}-p{%- endif %}{{ mysql_salt_pass }} {{ database }} < /etc/mysql/{{ database }}.schema
|
- name: mysql -u {{ mysql_salt_user }} -h{{ mysql_host }} {% if mysql_salt_pass %}-p{%- endif %}{{ mysql_salt_pass }} {{ database }} < /etc/mysql/{{ database }}.schema
|
||||||
- watch:
|
- onchanges:
|
||||||
- file: {{ state_id }}_schema
|
- file: {{ state_id }}_schema
|
||||||
- mysql_database: {{ state_id }}
|
- mysql_database: {{ state_id }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue