Update server.sls

Attempted fix for saltstack-formulas/mysql-formula#142
This commit is contained in:
S-Wilhelm 2016-10-10 17:02:59 -04:00 committed by GitHub
parent 5bf3cb6970
commit efe9acc1d9

View file

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