mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 17:50:27 +00:00
Update server.sls
Attempted fix for saltstack-formulas/mysql-formula#142
This commit is contained in:
parent
5bf3cb6970
commit
efe9acc1d9
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ mysqld-packages:
|
|||
- debconf: mysql_debconf
|
||||
{% endif %}
|
||||
|
||||
{% if os_family == 'RedHat' or 'Suse' and mysql.version >= 5.7 %}
|
||||
{% if os_family in ['RedHat', 'Suse'] and mysql.version >= 5.7 %}
|
||||
# Initialize mysql database with --initialize-insecure option before starting service so we don't get locked out.
|
||||
mysql_initialize:
|
||||
cmd.run:
|
||||
|
@ -106,7 +106,7 @@ mysqld:
|
|||
- enable: True
|
||||
- require:
|
||||
- pkg: {{ mysql.server }}
|
||||
{% if os_family == 'RedHat' or 'Suse' and mysql.version >= 5.7 %}
|
||||
{% if os_family in ['RedHat', 'Suse'] and mysql.version >= 5.7 %}
|
||||
- cmd: mysql_initialize
|
||||
{% endif %}
|
||||
- watch:
|
||||
|
|
Loading…
Add table
Reference in a new issue