Git Product home page Git Product logo

saltstack-spacewalk-postgresql-replication's Introduction

SaltStack-Spacewalk-PostgreSQL-Replication

This project is a sample of Spacewalk installation and setup with a PostgreSQL replication solution implemented by PgPool-II and configured by SaltStack.

##Requirements

  • one minimal CentOS7 machine: name this machine spacewalk
  • two openSuse 13.2 machines: name these machines postgres and postgres2 (names are setted for saltstack and pgpool-II configuration)
  • SaltStack installed on each machine (salt-minion on openSuse, salt-master and salt-minion on centOS)
                                      +---postgresql---+ 
                                      |                | 
                                      |  openSuse13.2  | 
                                  --->|  Salt-minion   | 
                                 |    |  Postgresql93  | 
          +----spacewalk----+    |    |                | 
          |                 |    |    +----------------+ 
          |     CentOs7     |    |                       
          |   Salt-master   |    |                       
          |   Salt-minion   |----|                       
          |    PgPool-II    |    |                       
          |    Spacewalk    |    |    +---postgresql2--+ 
          |                 |    |    |                | 
          +-----------------+    |    |  openSuse13.2  | 
                                 |    |  Salt-minion   | 
                                  --->|  Postgresql93  | 
                                      |                | 
                                      +----------------+ 

SaltStack installation

This project uses SaltStack to configure the system.

On centOS, to install salt-minion and salt-master, run:

yum install salt-minion salt-master salt

On both openSuse, to install salt-minion, run:

zypper install salt-minion

For more details on installation and configuration of Salt see the official installation docs

Prepare the installation

Copy the salt folder in /srv/ of the spacewalk machine (/srv/salt is the default SaltStack folder for states).

PostgreSQL

From the salt-master, call the state to configure postgresql machines: this will install/configure PostgreSQL for Spacewalk setup.

salt 'postgresql*' state.highstate

P.S.: Be sure to do this step before the "spacewalk state setup".

PgPool-II and Spacewalk

From the salt-master, call the state to configure the spacewalk machine: this will install/configure/start PgPool-II and Spacewalk.

salt 'spacewalk' state.highstate

Run Spacewalk

Navigate in Spacewalk with http://spacewalk.

saltstack-spacewalk-postgresql-replication's People

Contributors

ncounter 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.