mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-15 17:20:25 +00:00
Added correct service name for Debian-family distros
This commit is contained in:
parent
88ee8ccf9d
commit
aa6a4d80c3
1 changed files with 9 additions and 2 deletions
|
@ -2,8 +2,14 @@ include:
|
|||
- mysql
|
||||
|
||||
{% set pkg = salt['grains.filter_by']({
|
||||
'Debian': {'name': 'mysql-server'},
|
||||
'RedHat': {'name': 'mysql-server'},
|
||||
'Debian': {
|
||||
'name': 'mysql-server',
|
||||
'service': 'mysql',
|
||||
},
|
||||
'RedHat': {
|
||||
'name': 'mysql-server',
|
||||
'service': 'mysqld',
|
||||
},
|
||||
}) %}
|
||||
|
||||
mysqld:
|
||||
|
@ -12,6 +18,7 @@ mysqld:
|
|||
- name: {{ pkg.name }}
|
||||
service:
|
||||
- running
|
||||
- name: {{ pkg.service }}
|
||||
- enable: True
|
||||
require:
|
||||
- pkg: mysql
|
||||
|
|
Loading…
Add table
Reference in a new issue