forked from EnterpriseDB/edb-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PG_RedHat.yml
31 lines (28 loc) · 878 Bytes
/
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
---
# Variables for EPAS
pg_port: "5432"
pg_owner: "postgres"
pg_user_home: "/var/lib/pgsql"
pg_service: "{{ lookup('edb_devops.edb_postgres.pg_service') }}"
pg_database: "postgres"
pg_unix_socket_directories:
- "/var/run/postgresql"
shell_profile_path: "{{ pg_user_home }}/.pgsql_profile"
shell_profile_owner: "postgres"
shell_profile_group: "postgres"
shell_profile_mode: "0600"
shell_profile_content: |
# PostgreSQL shell environment
export PGDATA={{ pg_data }}
export PGDATABASE=postgres
export PGUSER=postgres
export PGPORT={{ pg_port }}
export PGLOCALEDIR=/usr/pgsql-{{ pg_version }}/share/locale
export PGHOST={{ pg_unix_socket_directories[0] }}
psqlrc_path: "{{ pg_user_home }}/.psqlrc"
psqlrc_owner: "postgres"
psqlrc_group: "postgres"
psqlrc_mode: "0600"
psqlrc_content: |
-- psql configuration
pg_data: "{{ pg_user_home }}/{{ pg_version }}/data"