Examples:
class { '::proxysql':
datadir => '/var/lib/proxysql',
datadir_mode => '0750',
logdir => '/var/log/proxysql',
logdir_mode => '0750',
configs => {
admin_variables => {
admin_credentials => 'admin:admin;remoteadmin:remateadminpass',
mysql_ifaces => '0.0.0.0:6032',
},
mysql_variables => {
threads => 8,
max_connections => 4096,
interfaces => '0.0.0.0:3306',
stacksize => 1048576,
ping_interval_server_msec => 10000,
},
mysql_servers => [
{
address => mysql,
port => 3306,
hostgroup => 0,
},
],
mysql_users => [
{
username => root,
},
],
mysql_query_rules => [
{
rule_id => 1,
active => 1,
match_pattern => '.',
log => 1,
apply => 0,
},
],
},
}