Sample properties file

Sample config.yml file

---
architecture: BDR-Always-ON
cluster_name: bdrtest-always-on-aws
cluster_tags:
  Owner: Aziz Rahman
cluster_bucket: bdr-alwayson-azizrahman

cluster_rules:
- cidr_ip: 0.0.0.0/0
  from_port: 22
  proto: tcp
  to_port: 22
- cidr_ip: 10.35.104.176/24
  from_port: 0
  proto: tcp
  to_port: 65535
- cidr_ip: 10.35.250.208/24
  from_port: 0
  proto: tcp
  to_port: 65535
ec2_ami:
  Name: RHEL-7.8_HVM_GA-20200225-x86_64-1-Hourly2-GP2
  Owner: '309956199498'
ec2_instance_reachability: public
ec2_vpc:
  Name: BDR-Test
  cidr: 10.35.0.0/16

cluster_vars:
  bdr_database: bdrdb
  bdr_node_group: bdrgroup
  enable_harp: false
  extra_postgres_extensions:
  - pglogical
  postgres_coredump_filter: '0xff'
  preferred_python_version: python3
  repmgr_failover: manual
  tpa_2q_repositories:
  - products/2ndqpostgres/release
  packages:
    RedHat:
      - lsof

  use_volatile_subscriptions: false

locations:
- Name: a
  az: us-east-1a
  region: us-east-1
  subnet: 10.35.104.0/24
- Name: b
  az: us-east-1b
  region: us-east-1
  subnet: 10.35.250.0/24

instance_defaults:
  default_volumes:
  - device_name: root
    encrypted: true
    volume_size: 16
    volume_type: gp2
  - device_name: /dev/xvdf
    encrypted: true
    vars:
      volume_for: postgres_data
    volume_size: 64
    volume_type: gp2
  platform: aws
  type: t3.micro
  vars:
    ansible_user: ec2-user

instances:
- Name: bdr1-a
  backup: barman-a
  location: a
  node: 1
  role:
  - primary
  - bdr
- Name: bdr2-a
  location: a
  node: 2
  role:
  - primary
  - bdr
- Name: bdr3-b
  backup: barman-b
  location: b
  node: 3
  role:
  - primary
  - bdr
- Name: bdr4-b
  location: b
  node: 4
  role:
  - primary
  - bdr
- Name: standby-a
  location: a
  node: 5
  role:
  - primary
  - bdr
  - readonly
  upstream: bdr2-a
- Name: standby-b
  location: b
  node: 6
  role:
  - primary
  - bdr
  - readonly
  upstream: bdr4-b
- Name: barman-a
  location: a
  node: 7
  role:
  - barman
  volumes:
  - device_name: /dev/xvdf
    encrypted: true
    vars:
      volume_for: barman_data
    volume_size: 128
    volume_type: gp2
- Name: barman-b
  location: b
  node: 8
  role:
  - barman
  volumes:
  - device_name: /dev/xvdf
    encrypted: true
    vars:
      volume_for: barman_data
    volume_size: 128
    volume_type: gp2
- Name: pgbouncer-haproxy-a
  location: a
  node: 9
  role:
  - pgbouncer
  - haproxy
  vars:
    haproxy_backend_servers:
    - bdr1-a
    - bdr2-a
  volumes:
  - device_name: /dev/xvdf
    volume_type: none
- Name: pgbouncer-haproxy-b
  location: b
  node: 10
  role:
  - pgbouncer
  - haproxy
  vars:
    haproxy_backend_servers:
    - bdr3-b
    - bdr4-b
  volumes:
  - device_name: /dev/xvdf
    volume_type: none

Could this page be better? Report a problem or suggest an addition!