mirror of
https://gitea.0xace.cc/ansible-galaxy/patroni.git
synced 2024-11-24 23:56:39 +00:00
patroni: bump default version to 3.3.0 and postgresql default version to 16.3
This commit is contained in:
parent
82d3456c3b
commit
18c1ad97fb
@ -1,5 +1,5 @@
|
||||
# Patroni common options
|
||||
patroni_version: "3.2.2"
|
||||
patroni_version: "3.3.0"
|
||||
patroni_install_official_repo: true
|
||||
patroni_play_group: "patroni"
|
||||
patroni_user: "postgres"
|
||||
@ -10,7 +10,7 @@ patroni_cluster_name: "patroni-cluster"
|
||||
patroni_namespace: "/service/"
|
||||
|
||||
# Patroni PostgreSQL common options
|
||||
patroni_postgresql_version: "16.2"
|
||||
patroni_postgresql_version: "16.3"
|
||||
patroni_postgresql_install_repo: true
|
||||
patroni_postgresql_system_locale: "en_US.UTF-8"
|
||||
patroni_postgresql_system_language: "{{ patroni_postgresql_system_locale }}"
|
||||
@ -54,12 +54,12 @@ patroni_wal_g_pg_binary_name: 'wal-g-pg'
|
||||
patroni_wal_g_config_name: ".walg.json"
|
||||
patroni_wal_g_restore_config_name: ".walg-restore.json"
|
||||
patroni_restore_script: "{{ patroni_postgresql_home_dir }}/restore.sh"
|
||||
patroni_postgresql_archive_command: "wal-g wal-push %p"
|
||||
patroni_postgresql_restore_command: "wal-g wal-fetch %f %p"
|
||||
patroni_cluster_bootstrap_command: "wal-g backup-fetch LATEST"
|
||||
patroni_cluster_restore_bootstrap_command: "wal-g backup-fetch {{ patroni_wal_g_restore_backup_name }}"
|
||||
patroni_postgresql_archive_command: "wal-g-pg wal-push %p"
|
||||
patroni_postgresql_restore_command: "wal-g-pg wal-fetch %f %p"
|
||||
patroni_cluster_bootstrap_command: "wal-g-pg backup-fetch LATEST"
|
||||
patroni_cluster_restore_bootstrap_command: "wal-g-pg backup-fetch {{ patroni_wal_g_restore_backup_name }}"
|
||||
# "restore_command" written to recovery.conf when configuring follower (create replica)
|
||||
patroni_cluster_restore_command: "wal-g wal-fetch %f %p"
|
||||
patroni_cluster_restore_command: "wal-g-pg wal-fetch %f %p"
|
||||
patroni_wal_g_create_replica_methods:
|
||||
- {option: "command", value: "{{ patroni_cluster_bootstrap_command }}"}
|
||||
- {option: "no_params", value: "True"}
|
||||
@ -189,7 +189,7 @@ patroni_postgresql_default_parameters:
|
||||
wal_receiver_status_interval: "10s"
|
||||
idle_in_transaction_session_timeout: "10min"
|
||||
jit: "off"
|
||||
# archive_command: 'wal-g wal-push %p'
|
||||
# archive_command: 'wal-g-pg wal-push %p'
|
||||
# archive_command: 'pgbackrest --stanza={{ pgbackrest_stanza }} archive-push %p'
|
||||
# max_worker_processes: '24'
|
||||
# max_parallel_workers: '12'
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
- name: Include WAL-G role
|
||||
ansible.builtin.include_role:
|
||||
name: wal-g
|
||||
name: wal-g-pg
|
||||
vars:
|
||||
wal_g_pg: yes
|
||||
when: patroni_wal_g_install
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
- name: Include WAL-G role
|
||||
ansible.builtin.include_role:
|
||||
name: wal-g
|
||||
name: wal-g-pg
|
||||
vars:
|
||||
wal_g_pg: yes
|
||||
when: patroni_wal_g_install
|
||||
|
@ -16,7 +16,7 @@ patroni_deps_packages:
|
||||
# Patroni variables
|
||||
patroni_package_name: "patroni"
|
||||
patroni_package: "{{ patroni_package_name }}={{ patroni_version }}-{{ patroni_version_build }}"
|
||||
patroni_version_build: "2.pgdg{{ ansible_distribution_version}}0+1"
|
||||
patroni_version_build: "1.pgdg{{ ansible_distribution_version}}0+1"
|
||||
patroni_unit_name: "patroni"
|
||||
patroni_config_name: "config.yml"
|
||||
|
||||
|
@ -16,7 +16,7 @@ patroni_deps_packages:
|
||||
# Patroni variables
|
||||
patroni_package_name: "patroni"
|
||||
patroni_package: "{{ patroni_package_name }}={{ patroni_version }}-{{ patroni_version_build }}"
|
||||
patroni_version_build: "2.pgdg{{ ansible_distribution_version}}0+1"
|
||||
patroni_version_build: "1.pgdg{{ ansible_distribution_version}}0+1"
|
||||
patroni_unit_name: "patroni"
|
||||
patroni_config_name: "config.yml"
|
||||
|
||||
|
@ -16,7 +16,7 @@ patroni_deps_packages:
|
||||
# Patroni variables
|
||||
patroni_package_name: "patroni"
|
||||
patroni_package: "{{ patroni_package_name }}={{ patroni_version }}-{{ patroni_version_build }}"
|
||||
patroni_version_build: "2.pgdg{{ ansible_distribution_version}}+1"
|
||||
patroni_version_build: "1.pgdg{{ ansible_distribution_version}}+1"
|
||||
patroni_unit_name: "patroni"
|
||||
patroni_config_name: "config.yml"
|
||||
|
||||
|
@ -16,7 +16,7 @@ patroni_deps_packages:
|
||||
# Patroni variables
|
||||
patroni_package_name: "patroni"
|
||||
patroni_package: "{{ patroni_package_name }}={{ patroni_version }}-{{ patroni_version_build }}"
|
||||
patroni_version_build: "2.pgdg{{ ansible_distribution_version}}+1"
|
||||
patroni_version_build: "1.pgdg{{ ansible_distribution_version}}+1"
|
||||
patroni_unit_name: "patroni"
|
||||
patroni_config_name: "config.yml"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user