forked from EnterpriseDB/edb-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PG_Debian.yml
32 lines (29 loc) · 931 Bytes
/
PG_Debian.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
---
# Variables for EPAS
pg_port: "5432"
pg_owner: "postgres"
pg_group: "postgres"
pg_user_home: "/var/lib/postgresql"
pg_service: "postgresql@{{ pg_version }}-{{ pg_instance_name }}"
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/lib/postgresql/{{ 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 }}/{{ pg_instance_name }}"