mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-15 17:20:25 +00:00
Official oracle mysql repo for mysql-server creates file /usr/my.cnf
That overrides default /etc/mysql/my.cnf parameters Now if this file exists it bacame managed and empty
This commit is contained in:
parent
c8720ab623
commit
98b054fcf6
2 changed files with 18 additions and 0 deletions
7
mysql/files/usr-my.cnf
Normal file
7
mysql/files/usr-my.cnf
Normal file
|
@ -0,0 +1,7 @@
|
|||
# DO NOT CHANGE THIS FILE!
|
||||
# This config is generated by SALTSTACK
|
||||
# and all change will be overrided on next salt call
|
||||
#
|
||||
# this file was created by mysql-server package
|
||||
# and replaced with saltstack
|
||||
# to prevent default my.cnf parameters overriding
|
|
@ -78,3 +78,14 @@ mysql_config:
|
|||
- group: root
|
||||
- mode: 644
|
||||
{% endif %}
|
||||
|
||||
# official oracle mysql repo
|
||||
# creates this file, that rewrites /etc/mysql/my.cnf setting
|
||||
# so, make it empty
|
||||
mysql_additional_config:
|
||||
file.managed:
|
||||
- name: /usr/my.cnf
|
||||
- source: salt://mysql/files/usr-my.cnf
|
||||
- create: False
|
||||
- watch_in:
|
||||
- service: mysqld
|
||||
|
|
Loading…
Add table
Reference in a new issue