Git Product home page Git Product logo

puppet-mha's Introduction

puppet-mha

Table of Contents

  1. Overview
  2. Module Description
  3. Usage
  4. Limitations
  5. Development

Overview

puppet-mha installs and configures a MHA (Mysql High Availability) cluster This module is provided to you by Trovit Systems department

Module Description

This module is composed by the manager and the node. The node class is really simple, it just installs some helper on the mysqld machine, while the manager is where the magic happens. puppet-mha helps you installing all the packages, configuring multiple MHA instances, giving SSH access to the nodes etc.

Usage

How to install a manager

  $servers_hash = { 'server01' => { 'hostname' => 'my-server-01' },
                    'server02' => { 'hostname' => 'my-server-02',
                                    'skip_reset_slave' => 1 }
                  }
  mha::manager::instance { 'my_cluster':
    servers              => $servers_hash,
    mysql_password       => 'foo',
    mysql_repl_password  => 'bar',
    ssh_key_priv         => 'ashdkshaksahdkj',
    ssh_key_pub          => '3j234324jn',
    online_change_script => 'profiles/mha/mha_online_change.sh.erb'
  }

Keep in mind that online_change_script and all the other scripts parameters must point to a template YOU have to implement. MHA gives you 100% flexibility about that and so do we.

How to install a node

  include mha::node

Bottom line

This module is thought with the Hiera/create_resource pattern in mind, but you can use it happily without hiera and doing all the dirty work in your manifest.

Limitations

This module is tested only on Debian 7 Wheezy and expects Puppet 3.7

Development

If you have some new cool feature or bugfix, just open a PR and we will take a look at it for sure! Feel free to open any issue you find too (but a PR is always better :P )

Release Notes/Contributors/Etc

Release 0.1.1

  • Linter fixes
  • README fixes

Release 0.1.0

  • Initial release

Author: Jordi Clariana [email protected]

Contributors:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.