mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 01:30:25 +00:00
Merge pull request #11 from opennode-salt-formulas/centos-my.cnf
Add managed my.cnf for CentOS
This commit is contained in:
commit
d9b3acad1f
2 changed files with 14 additions and 1 deletions
13
mysql/files/CentOS-my.cnf
Normal file
13
mysql/files/CentOS-my.cnf
Normal file
|
@ -0,0 +1,13 @@
|
|||
[mysqld]
|
||||
datadir=/var/lib/mysql
|
||||
socket=/var/lib/mysql/mysql.sock
|
||||
user={{ salt['pillar.get']('mysql:server:user', 'mysql') }}
|
||||
port={{ salt['pillar.get']('mysql:server:port', '3306') }}
|
||||
bind-address={{ salt['pillar.get']('mysql:server:bind-address', '127.0.0.1') }}
|
||||
# Disabling symbolic-links is recommended to prevent assorted security risks
|
||||
symbolic-links=0
|
||||
|
||||
[mysqld_safe]
|
||||
log-error=/var/log/mysqld.log
|
||||
pid-file=/var/run/mysqld/mysqld.pid
|
||||
|
|
@ -55,7 +55,7 @@ mysql-python:
|
|||
- installed
|
||||
- name: {{ mysql.python }}
|
||||
|
||||
{% if grains['os'] in ['Ubuntu', 'Debian', 'Gentoo'] %}
|
||||
{% if grains['os'] in ['Ubuntu', 'Debian', 'Gentoo', 'CentOS'] %}
|
||||
my.cnf:
|
||||
file.managed:
|
||||
- name: {{ mysql.config }}
|
||||
|
|
Loading…
Add table
Reference in a new issue