Giter Club home page Giter Club logo

puppet-pgsqlcluster's Introduction

puppet-pgsqlcluster

Installs and configures PostgreSQL master/slave cluster

Usage

Master

  # Optional PostgreSQL class invocation
  class { '::postgresql::server':
    listen_addresses        => $ipaddress,
    ip_mask_allow_all_users => '10.0.0.0/8',
  }

  class { '::pgsqlcluster':
    server_type      => 'master',              # Default value
    username         => 'replicator',
    password         => 'replicatorpassword',
    sibling_net      => '10.0.0.1/8',
    listen_addresses => '*',                   # Used in case the module is declaring postgresql::server         
    manage_postgres  => false                  # Set to true in case you want the module to setup PostgreSQL
                                               # Then make sure you don't declare postgresql::server
  }

Slave

  # Optional PostgreSQL class invocation
  class { '::postgresql::server':
    listen_addresses        => $ipaddress,
    ip_mask_allow_all_users => '192.168.0.0/24',
    manage_recovery_conf    => true,           # Required option
    needs_initdb            => false,          # Required option
  }

  class { '::pgsqlcluster':
    server_type      => 'slave',
    username         => 'replicator',
    password         => 'replicatorpassword',
    sibling_net      => '192.168.0.104/32'     # IP of master
    listen_addresses => '*',                   # Optional: See next option
    manage_postgres  => false                  # Shall postgresql::server be managed by this module
  }

puppet-pgsqlcluster's People

Contributors

mclueppers avatar

Watchers

 avatar  avatar  avatar

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.