mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-17 10:10:30 +00:00
Merge pull request #60 from neuhalje/master
Add Fedora 21 and a mysql.disabled state
This commit is contained in:
commit
6a0d3656d3
2 changed files with 25 additions and 0 deletions
|
@ -126,6 +126,24 @@ RedHat:
|
||||||
port: 3306
|
port: 3306
|
||||||
bind_address: 127.0.0.1
|
bind_address: 127.0.0.1
|
||||||
symbolic_links: 0
|
symbolic_links: 0
|
||||||
|
Fedora:
|
||||||
|
server: mariadb-server
|
||||||
|
client: mariadb
|
||||||
|
service: mariadb
|
||||||
|
python: MySQL-python
|
||||||
|
config:
|
||||||
|
file: /etc/my.cnf.d/server.cnf
|
||||||
|
sections:
|
||||||
|
mysqld_safe:
|
||||||
|
log_error: /var/log/mysqld.log
|
||||||
|
pid_file: /var/run/mysqld/mysqld.pid
|
||||||
|
mysqld:
|
||||||
|
datadir: /var/lib/mysql
|
||||||
|
socket: /var/lib/mysql/mysql.sock
|
||||||
|
user: mysql
|
||||||
|
port: 3306
|
||||||
|
bind_address: 127.0.0.1
|
||||||
|
symbolic_links: 0
|
||||||
Amazon:
|
Amazon:
|
||||||
server: mysql-server
|
server: mysql-server
|
||||||
client: mysql
|
client: mysql
|
||||||
|
|
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