forked from idealista/postgresql_role
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCentOS-8.yml
33 lines (29 loc) · 1.34 KB
/
CentOS-8.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
---
pg_basename_version: "{{ pg_major_release | regex_replace('\\.','') }}"
pg_service: "postgresql-{{ pg_major_release }}"
pg_basename: "postgresql{{ pg_basename_version }}"
__pg_url_rpm: "https://download.postgresql.org/pub/repos/yum/reporpms/EL-{{ ansible_distribution_major_version }}-x86_64/pgdg-redhat-repo-latest.noarch.rpm"
__pg_packages:
- "{{ pg_basename }}"
- "{{ pg_basename }}-server"
- "{{ pg_basename }}-contrib"
- "{{ pg_basename }}-libs"
# If you want to set the minor release:
# - "{{ pg_basename }}-{{ pg_major_release }}.{{ pg_minor_release }}"
# - "{{ pg_basename }}-server-{{ pg_major_release }}.{{ pg_minor_release }}"
# - "{{ pg_basename }}-contrib-{{ pg_major_release }}.{{ pg_minor_release }}"
# - "{{ pg_basename }}-libs-{{ pg_major_release }}.{{ pg_minor_release }}"
# And, for example:
# pg_minor_release: "5-1PGDG.rhel7"
pg_usr_path: "/usr/pgsql-{{ pg_major_release }}"
__pg_data_directory: "/var/lib/pgsql/{{ pg_major_release }}/data"
__pg_config_directory: "{{ pg_data_directory if pg_data_directory is defined else __pg_data_directory }}"
__pg_log_directory: "/var/log/postgresql"
__pg_initdb_options: "--no-locale"
__pg_setup_command: "{{ pg_usr_path }}/bin/postgresql-{{ pg_major_release }}-setup"
pg_config_files:
- pg_hba.conf
- pg_ident.conf
- postgresql.conf
pg_required_libs:
- python3-psycopg2