From bb9d094beeabee7027e462f37230abea3087680c Mon Sep 17 00:00:00 2001 From: Maksim Fedotov Date: Sat, 1 Sep 2018 17:14:16 +0300 Subject: [PATCH] update README --- README.markdown | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.markdown b/README.markdown index 0ae41c4c..e9668bbb 100644 --- a/README.markdown +++ b/README.markdown @@ -34,12 +34,12 @@ The module requires Puppet 4.x and currently supports only Debian 8 "Jessie" (an ### Beginning with proxysql To install the ProxySQL software with all the default options: -``` +```puppet include ::proxysql ``` You can customize options such as (but not limited to) `listen_port`, `admin_password`, `monitor_password`, ... -``` +```puppet class { '::proxysql': listen_port => 3306, admin_password => '654321', @@ -60,7 +60,7 @@ You can customize options such as (but not limited to) `listen_port`, `admin_pas ``` You can configure users\hostgroups\rules\schedulers using class parameters -``` +```puppet class { '::proxysql': mysql_servers => [ { 'db1' => { 'port' => 3306, 'hostgroup_id' => 1, } }, @@ -87,7 +87,7 @@ You can configure users\hostgroups\rules\schedulers using class parameters ``` Or by using individual resources: -``` +```puppet class { '::proxysql': listen_port => 3306, admin_password => 'SuperSecretPassword', @@ -165,7 +165,7 @@ Or by using individual resources: ``` On `Yum` based systems you can do and the module will install ProxySQL from the Percona repo's. -``` +```puppet class { '::proxysql': listen_port => 3306, admin_password => '654321', @@ -182,7 +182,7 @@ Configuration is done by the `proxysql` class. You can override any configuration setting by using the `override_config_settings` hash. This hash resembles the structure of the `proxysql.cnf` file -``` +```puppet { admin_variables => { refresh_interval => 2000,