Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Allow multiple clients_config files #216

Open
hegyre opened this issue Mar 13, 2019 · 0 comments
Open

[Feature Request] Allow multiple clients_config files #216

hegyre opened this issue Mar 13, 2019 · 0 comments

Comments

@hegyre
Copy link

hegyre commented Mar 13, 2019

Hello,

As per readme, a configuration directory can be used (which is the default for CentOS which is my distribution)

Currently the formula allows managing only one clients_config file, so that if I want to have 2 differents services with 2 different auto-logins, then I cannot.

We could create multiple extra conf file (with username and password inside) that can be then used for each service/script we need.

For example, I use the following for logrotate service ONLY:

  clients_config:
    # The formula does not currently (2019-03-13) allow us to create multiple clients_config files, so we are stuck with only one service user
    file: mysql-clients-logrotate.cnf
    sections:
      mysqladmin:
        user    : s-logrotate
        password: mypass

I'll then use my logrotate script with:
/usr/bin/mysqladmin --defaults-extra-file=/etc/my.cnf.d/mysql-clients-logrotate.cnf --local flush-slow-log

If I want to use another script, then I'd like to create another /etc/my.cnf.d/mysql-clients-serviceX.cnf which contains other credentials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant