xoxys.postgres/defaults/main.yml

63 lines
2.0 KiB
YAML
Raw Normal View History

2018-10-14 23:17:40 +02:00
---
postgres_repository_enabled: False
postgres_version: 10
2018-10-14 23:42:13 +02:00
postgres_repository_filename: "Postgresql-{{ postgres_version | regex_replace('\\.') }}"
2018-10-16 00:07:17 +02:00
postgres_user: postgres
postgres_group: postgres
2018-10-16 20:53:36 +02:00
2019-06-20 15:55:07 +02:00
# Create separate LVM storage for matrix
postgres_lvm_enabled: False
# This variables are only necessary if postgres_lvm_enabled is 'True'
# Set physical volumes to use in LVM
# postgres_lvm_pvs: # ['/dev/sdb', '/dev/sdc']
# postgres_lvm_vg: # "vg_matrix"
# postgres_lvm_lv: # "lv_matrix"
# postgres_lvm_fstype: # "ext4"
# postgres_lvm_size: # "50G"
# postgres_base_dir: # defaults to os default
2018-10-18 22:59:39 +02:00
# Available postgresql.conf options
2018-10-16 20:53:36 +02:00
postgres_log_destination:
- stderr
2018-10-16 20:59:31 +02:00
postgres_log_directory: log
2018-10-16 20:53:36 +02:00
postgres_log_filename: postgresql.log
postgres_log_rotation_age: 1d
postgres_log_rotation_size: 0
2018-10-26 21:56:47 +02:00
postgres_iptables_enabled: False
2018-10-16 20:53:36 +02:00
postgres_connection_port: 5432
postgres_connection_addresses:
- localhost
postgres_socket_directories:
- /var/run/postgresql
postgres_password_encryption: md5
2018-10-16 23:05:15 +02:00
2018-10-18 22:59:39 +02:00
# Enable and setup ssl transport security
2018-10-16 23:05:15 +02:00
postgres_tls_enabled: False
postgres_tls_cert_filename: "mycert.pem"
postgres_tls_key_filename: "mykey.pem"
postgres_tls_cert_source: mycert.pem
postgres_tls_key_source: mykey.pem
2018-10-18 22:59:39 +02:00
postgres_users: []
# - name: jdoe #required; the rest are optional
# password: # defaults to not set
# encrypted: # defaults to 'yes'
# priv: # defaults to not set
# role_attr_flags: # defaults to not set
# db: # defaults to not set
# login_host: # defaults to 'localhost'
# login_password: # defaults to not set
# login_user: # defaults to '{{ postgres_user }}'
# login_unix_socket: # defaults to 1st of postgres_socket_directories
# port: # defaults to not set
# state: # defaults to 'present'
2018-10-22 22:10:06 +02:00
# pam_user: # defaults to not set
2018-10-18 22:59:39 +02:00
postgres_hba_entries:
- {type: local, database: all, user: all, auth_method: peer}
- {type: host, database: all, user: all, address: '127.0.0.1/32', auth_method: md5}
- {type: host, database: all, user: all, address: '::1/128', auth_method: md5}