mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 09:40:26 +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:
|
include:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
|
{% set pkg = salt['grains.filter_by']({
|
||||||
|
'Debian': {'name': 'mysql-server'},
|
||||||
|
'RedHat': {'name': 'mysql-server'},
|
||||||
|
}) %}
|
||||||
|
|
||||||
mysqld:
|
mysqld:
|
||||||
|
pkg:
|
||||||
|
- installed
|
||||||
|
- name: {{ pkg.name }}
|
||||||
service:
|
service:
|
||||||
- running
|
- running
|
||||||
- enable: True
|
- enable: True
|
||||||
|
|
Loading…
Add table
Reference in a new issue