ansible-collection-hardening icon indicating copy to clipboard operation
ansible-collection-hardening copied to clipboard

Percona hardening

Open BarbzYHOOL opened this issue 6 years ago • 2 comments

Hello,

I use Percona and tried this role. It creates a hardening file in conf.d but in Percona we also use /etc/mysql/percona.conf.d/ and I'm wondering in which order the files are read.

Because if some setting overrides the hardening, it might be a bit of an issue

BarbzYHOOL avatar Jun 21 '18 21:06 BarbzYHOOL

From the docs:

MySQL makes no guarantee about the order in which option files in the directory will be read.

https://dev.mysql.com/doc/refman/5.7/en/option-files.html

So basically you have no way of knowing if some settings gets overridden. So this role should probably check if Percona is installed and then use the correct directories.

rndmh3ro avatar Jun 29 '18 18:06 rndmh3ro

that quote is funny

hmm maybe i'll add it if I remember about the issue

BarbzYHOOL avatar Jun 29 '18 22:06 BarbzYHOOL