2023-07-11 14:27:34 +00:00
|
|
|
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_deps_packages:
|
2023-07-21 14:13:51 +00:00
|
|
|
- gnupg2
|
2023-07-11 14:27:34 +00:00
|
|
|
- python3-psycopg2
|
|
|
|
- python3-consul
|
|
|
|
- python3-zookeeper
|
|
|
|
- python3-etcd
|
|
|
|
|
|
|
|
# Patroni variables
|
|
|
|
patroni_package_name: "patroni"
|
|
|
|
patroni_package: "{{ patroni_package_name }}={{ patroni_version }}-{{ patroni_version_build }}"
|
2024-05-15 11:21:54 +00:00
|
|
|
patroni_version_build: "1.pgdg{{ ansible_distribution_version}}0+1"
|
2023-07-11 14:27:34 +00:00
|
|
|
patroni_unit_name: "patroni"
|
|
|
|
patroni_config_name: "config.yml"
|
|
|
|
|
|
|
|
# PostgreSQL variables
|
|
|
|
patroni_postgresql_package_name: "postgresql-{{ patroni_postgresql_major_version }}"
|
|
|
|
patroni_postgresql_package: "{{ patroni_postgresql_package_name }}={{ patroni_postgresql_version }}-{{ patroni_postgresql_version_build }}"
|
|
|
|
patroni_postgresql_version_build: "1.pgdg{{ ansible_distribution_version}}0+1"
|
|
|
|
patroni_postgresql_cluster_name: "main"
|
|
|
|
patroni_postgresql_data_dir: "{{ patroni_postgresql_home_dir }}/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
|
|
|
patroni_postgresql_wal_dir: ""
|
|
|
|
patroni_postgresql_conf_dir: "/etc/postgresql/{{ patroni_postgresql_major_version }}/{{ patroni_postgresql_cluster_name }}"
|
|
|
|
patroni_postgresql_log_dir: "/var/log/postgresql"
|
|
|
|
patroni_postgresql_unix_socket_dir: "/var/run/postgresql"
|
|
|
|
patroni_postgresql_home_dir: "/var/lib/postgresql"
|
|
|
|
patroni_postgresql_bin_dir: "/usr/lib/postgresql/{{ patroni_postgresql_major_version }}/bin"
|
|
|
|
patroni_postgresql_unit_name: "postgresql@{{ patroni_postgresql_major_version}}-{{ patroni_postgresql_cluster_name }}"
|
|
|
|
|
|
|
|
# SSL variables
|
2024-03-19 11:04:46 +00:00
|
|
|
patroni_cacert_update_ca_trust_command: "update-ca-certificates --fresh"
|
|
|
|
patroni_cacert_ca_trust_dir: "/usr/local/share/ca-certificates"
|