mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-15 17:20:25 +00:00
New 'mysql.disabled' state.
This commit is contained in:
parent
f0b852ad12
commit
0e5ce7a86d
1 changed files with 7 additions and 0 deletions
7
mysql/disabled.sls
Normal file
7
mysql/disabled.sls
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% from "mysql/defaults.yaml" import rawmap with context %}
|
||||
{%- set mysql = salt['grains.filter_by'](rawmap, grain='os', merge=salt['pillar.get']('mysql:server:lookup')) %}
|
||||
|
||||
mysql:
|
||||
service.dead:
|
||||
- name: {{ mysql.service }}
|
||||
- enable: False
|
Loading…
Add table
Reference in a new issue