---
# defaults file for test_postgresql_db
db_name: 'ansible_db'
db_user1: 'ansible_db_user1'
db_user2: 'ansible_db_user2'
db_user3: 'ansible_db_user3'
db_default: 'postgres'

tmp_dir: '/tmp'
db_session_role1: 'session_role1'
db_session_role2: 'session_role2'

pg_hba_test_ips:
- contype: local
  users: 'all,postgres,test'
- source: '0000:ffff::'
  netmask: 'ffff:fff0::'
- source: '192.168.0.0/24'
  netmask: ''
  databases: 'all,replication'
- source: '192.168.1.0/24'
  netmask: ''
  databases: 'all'
  method: reject
- source: '127.0.0.1/32'
  netmask: ''
- source: '::1/128'
  netmask: ''
- source: '0000:ff00::'
  netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff00'
  method: scram-sha-256
- source: '172.16.0.0'
  netmask: '255.255.0.0'
  method: trust

# defaults for test SSL
ssl_db: 'ssl_db'
ssl_user: 'ssl_user'
ssl_pass: 'ssl_pass'
ssl_rootcert: '~{{ pg_user }}/root.crt'
