PostgreSQL 12 on one or two RHEL/Centos boxes.
Internet. RedHat Linux 7 or 8, or Centos 7 or 8.
This role wast tested with molecule:
The first three vars you must set, the others are optional.
-
base_postgres_mip
# This is the ip address of the primary/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
# With 2 hosts the one is primary, the other replica -
base_postgres_sip
# The ip address of the replica when you use 2 databases
RedHat-like Linux
[dataservers] data1 role=primary data2 role=replica
---
- name: Database deployment
hosts: dbservers
become: yes
gather_facts: True
vars_files:
- dbservers/secrets.yml
pre_tasks:
- include: dbservers/pre_tasks.yml
roles:
- dockpack.base_postgres_role
- rsyslog
tasks: []
post_tasks:
- include: dbservers/post_tasks.yml
BSD, MIT
http://twitter.com/bbaassssiiee https://github.com/dockpack/base_postgres_role.git