mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 09:40:26 +00:00
Merge pull request #146 from S-Wilhelm/master
Fix server.sls version check on Debian
This commit is contained in:
commit
5a50911bc5
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