Giter Club home page Giter Club logo

base_postgres's Introduction

PostgreSQL Master/Slave

PostgreSQL 9.4 on one or two RHEL/Centos boxes.

Requirements

Internet. RedHat Linux 6 or 7, or Centos 6 or 7.

This role wast tested with molecule:

Role Variables

The first three vars you must set, the others are optional.

base_postgres_mip  # This is the ip address of the primary or master database
base_postgres_user # This is your user
base_postgres_pass # This is your password

base_postgres_net  # 192.168.20.0/24 This is the subnet granted access
  base_postgres_role # If you want 2 hosts then one is master, the other slave
base_postgres_sip  # The ip address of the slave when you use 2 databases

Dependencies

Ansible Tower 2.4.5 is compatible with this.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

Inventory

	[dataservers]
	data1 role=master
	data2 role=slave

playbook for dbserver tier


- name: 'dbservers.yml'
	hosts: dbservers
	become: yes
	gather_facts: True

	vars_files:
		- dbservers/secrets.yml

	pre_tasks:
		- include: dbservers/pre_tasks.yml

	roles:
		- bbaassssiiee.base_postgres_role
	- rsyslog

	tasks: []

	post_tasks:
		- include: dbservers/post_tasks.yml

License

BSD, MIT

Author Information

http://twitter.com/bbaassssiiee https://github.com/bbaassssiiee/base_postgres_role.git

base_postgres's People

Contributors

bbaassssiiee avatar lnxlalith avatar

Watchers

James Cloos avatar

Forkers

amitjattan

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.