mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 01:30:25 +00:00
17 lines
273 B
Text
17 lines
273 B
Text
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
|
|
require:
|
|
- pkg: mysql
|