Skip to content

sasg/puppet-percona

Repository files navigation

#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',
  }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published