-
Notifications
You must be signed in to change notification settings - Fork 51
/
PG_RedHat.yml
39 lines (30 loc) · 1.04 KB
/
PG_RedHat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
pg_wal: ""
pg_data: "/var/lib/pgsql/{{ pg_version }}/{{ pg_instance_name }}/data"
pg_default_data: "/var/lib/pgsql/{{ pg_version }}/{{ pg_instance_name }}/data"
pg_encoding: ""
# log directory and filename
pg_log: "/var/log/postgres"
pg_log_filename: "{{ pg_instance_name }}-postgresql-%a.log"
# Patroni bin directory
patroni_bin_dir: "{{ '/usr/local/bin' if ansible_distribution_major_version == '8' else '/usr/bin' }}"
# postgres service
pg_service: "{{ lookup('edb_devops.edb_postgres.pg_service') }}-patroni"
pg_systemd_global_unit_file: "/usr/lib/systemd/system/postgresql-{{ pg_version }}-patroni.service"
# required & optional directories
pg_user_home: "/var/lib/pgsql"
pg_bin_path: "/usr/pgsql-{{ pg_version }}/bin"
# unix socket domain directories
pg_unix_socket_directories:
- "/var/run/postgresql"
# postgres port
pg_port: 5432
# postgres database
pg_database: "postgres"
# postgres user
pg_owner: "postgres"
pg_group: "postgres"
# postgres superuser
pg_superuser: "postgres"
pg_shared_libraries_list:
- "$libdir/pg_stat_statements"