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:
root 2015-02-11 02:21:31 +00:00
parent c8720ab623
commit 98b054fcf6
2 changed files with 18 additions and 0 deletions

7
mysql/files/usr-my.cnf Normal file
View 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

View file

@ -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