mirror of
https://gitea.0xace.cc/ansible-galaxy/patroni.git
synced 2024-11-29 01:56:39 +00:00
22 lines
1.2 KiB
YAML
22 lines
1.2 KiB
YAML
|
patroni_apt_key:
|
||
|
- name: org.postgresql.gpg
|
||
|
url: "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
|
||
|
keyring: /etc/apt/trusted.gpg.d/org.postgresql.gpg
|
||
|
patroni_apt_repository:
|
||
|
- repo: deb http://apt.postgresql.org/pub/repos/apt {{ ansible_distribution_release }}-pgdg main
|
||
|
filename: postgresql
|
||
|
|
||
|
patroni_postgresql_package: "{{ patroni_postgresql_package_name }}-{{ patroni_postgresql_major_version }}={{ patroni_postgresql_version }}"
|
||
|
patroni_package: "{{ patroni_package_name }}={{ patroni_version }}"
|
||
|
|
||
|
|
||
|
# PostgreSQL variables
|
||
|
patroni_postgresql_cluster_name: "main"
|
||
|
patroni_postgresql_data_dir: "{{ patroni_postgresql_home_dir }}/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}" # You can specify custom data dir path
|
||
|
patroni_postgresql_wal_dir: "" # custom WAL dir path (symlink will be created) [optional]
|
||
|
patroni_postgresql_conf_dir: "/etc/postgresql/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
||
|
patroni_postgresql_bin_dir: "/usr/lib/postgresql/{{ patroni_postgresql_major_version }}/bin"
|
||
|
patroni_postgresql_log_dir: "/var/log/postgresql"
|
||
|
patroni_postgresql_unix_socket_dir: "/var/run/postgresql"
|
||
|
patroni_postgresql_home_dir: "/var/lib/postgresql"
|