From a8bbdc33e8a1db38a6596f84f63568894a37fa5a Mon Sep 17 00:00:00 2001 From: Ian van der Linde Date: Thu, 25 Apr 2024 08:50:13 +0200 Subject: [PATCH] Make PgPool PCP package name configurable on RHEL At the moment, the PgPool package can be specified manually, but the corresponding pcp package on RHEL cannot. This patch allows for that, keeping the existing defaults. A patch is not needed for EPAS, as it does not make use of such a package. --- roles/setup_pgpool2/tasks/pgpool2_install.yml | 2 +- roles/setup_pgpool2/vars/PG_RedHat.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/setup_pgpool2/tasks/pgpool2_install.yml b/roles/setup_pgpool2/tasks/pgpool2_install.yml index ddb18c73..a32b4e71 100644 --- a/roles/setup_pgpool2/tasks/pgpool2_install.yml +++ b/roles/setup_pgpool2/tasks/pgpool2_install.yml @@ -29,7 +29,7 @@ - name: Install pgpool-II-pcp package on RedHat ansible.builtin.package: - name: "pgpool-II-pcp" + name: "{{ pgpool2_pcp_package_name }}" state: present when: - ansible_os_family == 'RedHat' diff --git a/roles/setup_pgpool2/vars/PG_RedHat.yml b/roles/setup_pgpool2/vars/PG_RedHat.yml index c898441d..dda4ab85 100644 --- a/roles/setup_pgpool2/vars/PG_RedHat.yml +++ b/roles/setup_pgpool2/vars/PG_RedHat.yml @@ -2,6 +2,7 @@ pgpool2_version: 4.3 # We don't have the choice of the version with community PostgreSQL pgpool2_package_name: "pgpool-II" +pgpool2_pcp_package_name: "pgpool-II-pcp" pgpool2_configuration_file: "/etc/pgpool-II/pgpool.conf" pgpool2_pool_passwd_file: "/etc/pgpool-II/pool_passwd" pgpool2_user: "postgres"