The proxysql_binlog module installs, configures and manages the proxysql-binlog service.
This module requires toml gem, which is used to translate Hash configuration to proxysql-binlog toml format configuration files. To install it you need to execute following command on your puppetmaster server:
sudo puppetserver gem install toml
To install a proxysql-binlog with the default options:
include 'proxysql_binlog'
To customize proxysql-binlog configuration, you must also pass in an override hash:
class { 'proxysql_binlog':
user => 'myawesomeuser',
override_config => {
'mysql' => {
'user' => 'myslaveuser',
'password' => 'myslavepassword'
}
}
}
Classes
Public Classes
proxysql_binlog
: Installs and configures proxysql-binlog.
Private Classes
proxysql_binlog::config
: Private class for managing proxysql-binlog config.proxysql_binlog::install
: Private class for installing proxysql-binlog.proxysql_binlog::params
: Private class for setting default proxysql-binlog parameters.proxysql_binlog::service
: Private class for managing proxysql-binlog service.
Functions
proxysql_binlog_config
: Convert hash to proxysql-binlog TOML config.
Installs and configures proxysql-binlog.
class { 'proxysql-binlog':
override_config => {
general => {
listen_address => '127.0.0.1:3008',
}
}
}
The following parameters are available in the proxysql_binlog
class.
Data type: String
Package containing proxysql-binlog. Defaults to 'proxysql-binlog'.
Default value: $proxysql_binlog::params::package_name
Data type: String
Version of proxysql-binlog. Defaults to 'latest'.
Default value: $proxysql_binlog::params::version
Data type: Boolean
Specifies whether proxysql-binlog service should be managed. Defaults to 'true'.
Default value: $proxysql_binlog::params::manage_service
Data type: String
User for proxysql-binlog. Defaults to 'proxysql_binlog'.
Default value: $proxysql_binlog::params::user
Data type: String
User for proxysql-binlog. Defaults to 'proxysql_binlog'.
Default value: $proxysql_binlog::params::group
Data type: Array[String]
Array of install options for managed package resources. Appropriate options are passed to package manager.
Default value: $proxysql_binlog::params::package_install_options
Data type: Hash
Hash of override configuration options for proxysql-binlog
Default value: {}
Data type: Boolean
Default value: $proxysql_binlog::params::enable_logrotate
Type: Ruby 3.x API
Convert hash to proxysql-binlog TOML config.
The proxysql_binlog_config function.
Returns: Toml
proxysql-binlog configuration content.
For a list of supported operating systems, see metadata.json
Please feel free to fork, modify, create issues, bug reports and pull requests.