Generates ProxySQL configuration and starts ProxySQL in a docker container. See https://github.com/smartboxgroup/proxysql-docker
TODO: List your supported platforms.
The attributes defined by this recipe are organized under the node['proxysql'] namespace. All ProxySQL admin and frontend configurations are managed using attributes. Backend configurations, such as mysql servers, mysql users and sq; query rules, are managed in data bags. You can specift the databag name and section within it in attributes. Data from both databag and secret_databag is merged into a single hash and secret_databag takes precedence so you can use both or just one of them.
Key | Type | Description | Default |
---|---|---|---|
['proxysql']['databag'] | String | Where to find the backend configurations | proxysql |
['proxysql']['secret_databag'] | String | Where to find the backend configurations (encrypted data bag) | proxysql_secrets |
['proxysql']['databag_section'] | String | Where to find the backend configurations inside the data bag | proxysql |
['proxysql']['config_file'] | String | Where to place the generated ProxySQL config file, note that the folder containing this file will be mounted in the docker container | /etc/proxysql/proxysql.cnf |
Include proxysql
in your node's run_list
:
{
"run_list": [
"recipe[proxysql::default]"
]
}
Author:: Smartbox (si-opex@smartbox.com)