percona

Installs, configures, and manages percona xtradb cluster.

FILIADATA

filiadata

9,038 downloads

6,309 latest version

3.1 quality score

Version information

  • 0.2.2 (latest)
  • 0.1.1
  • 0.0.1
released Feb 24th 2016
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet 3.x
  • RedHat
    ,
    CentOS
    ,
    OracleLinux
    ,
    Scientific

Start using this module

Documentation

filiadata/percona — version 0.2.2 Feb 24th 2016

#percona

Build Status By FILIADATA

####Table of Contents

  1. Overview
  2. Usage

##Overview

This module installs and configures a Percona XtraDB Cluster.

##Usage

For Percona XtraDB Cluster with exported resource support

  class { '::percona':
    db_galera              => true,
    exported_resource      => true,
    reserved_os_memory     => 128,
    wsrep_cnf              => {
      mysqld => {
        wsrep_cluster_name => 'percona_test',
        wsrep_sst_method   => 'xtrabackup-v2',
        wsrep_sst_auth     => 'sst_user:78sdu4538',
        wsrep_node_name    => "${::hostname}_${::ipaddress_eth1}",
        wsrep_node_address => $::ipaddress_eth1,
      },
    },
    mysql_admin_user       => 'mroot',
    mysql_admin_password   => 'mroot_pw',
    mysql_monitor_user     => 'mmonitor',
    mysql_monitor_password => 'mmonitor_pw',
  }

For Percona Garbd with exported resource support

  class { '::percona':
    db_galera         => true,
    is_arbitrator     => true,
    exported_resource => true,
    wsrep_cnf         => {
      mysqld => {
        wsrep_cluster_name => 'percona_test',
      },
    },
  }

For Percona XtraDB Server (Standalone)

  class { '::percona':
    reserved_os_memory     => 128,
    mysql_admin_user       => 'mroot',
    mysql_admin_password   => 'mroot_pw',
  }

Set additional parameter in my.cnf config

  mysql_config { 'server-id':
    value => 16,
  }
  mysql_config { 'master-host':
    value => '10.55.3.1',
  }