Puppet module for Percona. Tested on RHEL6 and Debian6
Ruby Puppet
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits ahead, 255 commits behind arioch:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/facter
manifests
spec
templates
tests
.gitignore
README.md
Rakefile
deps.txt

README.md

Puppet Percona

Requirements

Basic usage

Client only

class { 'apt': }
class { 'percona': }

Class['apt'] ->
Class['percona']

Client and server

class { 'apt': }
class { 'percona': server => true; }

Class['apt'] ->
Class['percona']

Configuration

percona::conf {
  'innodb_file_per_table': content => "[mysqld]\ninnodb_file_per_table";
  'query_cache_size':      content => "[mysqld]\nquery_cache_size = 32M";
  'table_open_cache':      content => "[mysqld]\ntable_open_cache = 768";

  'foo':
    ensure  => present,
    content => template ("percona/custom1.cnf.erb");
  'bar':
    ensure  => absent,
    content => template ("percona/custom2.cnf.erb");
}

percona::database { 'dbfoo':
  ensure => present;
}

percona::user { 'userfoo':
  ensure   => present,
  password => 'default',
  database => 'dbfoo';
}

percona::user { 'userbar':
  ensure   => present,
  password => 'default',
  database => 'dbfoo';
}

Unit testing

Unit testing is done using rspec-puppet To test the module run the following:

# Installation
gem install rspec-puppet --no-ri --no-rdoc

# Run tests
cd /etc/puppet/modules/percona
rake