Forge Home

mariadb

Puppet Module for managing MariaDB

20,136 downloads

8,182 latest version

4.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 2.1.1 (latest)
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.1.1
  • 1.1.0
  • 1.0.2
  • 1.0.1
  • 1.0.0
  • 0.6.0
  • 0.5.0
released Sep 15th 2016
This version is compatible with:
  • Puppet Enterprise >= 3.0.0 < 5.0.0
  • Puppet >= 3.0.0 < 5.0.0
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'edestecd-mariadb', '0.6.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add edestecd-mariadb
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install edestecd-mariadb --version 0.6.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

edestecd/mariadb — version 0.6.0 Sep 15th 2016

mariadb

Build Status Puppet Forge Puppet Forge Downloads Puppet Forge Score

####Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with mariadb
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module
  8. Contributors

##Overview

Puppet Module to install/configure MariaDB client/cluster/server

##Module Description

The mariadb module provides some classes to install and configure:

  • MariaDB Client
  • MariaDB Galera Cluster
  • MariaDB Server
  • MariaDB Repo

##Setup

###What mariadb affects

  • mariadb package install
  • mariadb config files
  • mariadb services
  • mariadb user/group (optional)

###Setup Requirements

only need to install the module

###Beginning with mariadb

Minimal mariadb client install for command line use:

include mariadb::client

##Usage

###Manage the server with pam authentication

class { 'mariadb::server':
  auth_pam => true,
}

###Also manage the server user and group

class { 'mariadb::server':
  manage_user => true,
  uid         => 494,
  gid         => 494,
  shell       => '/sbin/nologin',
}

###Customize the cluster config

class { 'mariadb::cluster':
  wsrep_cluster_peers     => delete(['192.168.1.1', '192.168.1.2', '192.168.1.3'], $::ipaddress),
  wsrep_cluster_name      => 'my_super_cluster',
  wsrep_sst_password      => 'super_secret_password',
  wsrep_sst_method        => 'xtrabackup-v2',
  root_password           => 'another_secret_password',
  override_options        => {
    'performance_schema'    => undef,
    'innodb_file_per_table' => 'OFF',
  },
  galera_override_options => {
    'wsrep_slave_threads'            => '2',
    'innodb_flush_log_at_trx_commit' => '0',
  }
}

###Configure with hiera yaml

include mariadb::cluster
---
mariadb::cluster::manage_timezone: true

mariadb::cluster::wsrep_cluster_peers:
- 192.168.1.1
- 192.168.1.2
mariadb::cluster::wsrep_cluster_name: my_super_cluster
mariadb::cluster::wsrep_sst_method: rsync
mariadb::cluster::root_password: another_secret_password

mariadb::cluster::override_options:
  performance_schema: OFF
  innodb_file_per_table: OFF
mariadb::cluster::galera_override_options:
  wsrep_slave_threads: 2
  innodb_flush_log_at_trx_commit: 0

##Reference

Classes

  • mariadb::client
  • mariadb::cluster
  • mariadb::server
  • mariadb::repo

##Limitations

This module has been built on and tested against Puppet 3.8 and higher.
While I am sure other versions work, I have not tested them.

This module supports modern RedHat and Debian based systems.
No plans to support other versions (unless you add it :)..

##Development

Pull Requests welcome