mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-15 17:20:25 +00:00
Added pkg.installed for the server; added RedHat package names
This commit is contained in:
parent
8ce3965082
commit
28c1a0e030
1 changed files with 8 additions and 0 deletions
|
@ -1,7 +1,15 @@
|
|||
include:
|
||||
- mysql
|
||||
|
||||
{% set pkg = salt['grains.filter_by']({
|
||||
'Debian': {'name': 'mysql-server'},
|
||||
'RedHat': {'name': 'mysql-server'},
|
||||
}) %}
|
||||
|
||||
mysqld:
|
||||
pkg:
|
||||
- installed
|
||||
- name: {{ pkg.name }}
|
||||
service:
|
||||
- running
|
||||
- enable: True
|
||||
|
|
Loading…
Add table
Reference in a new issue