postgresql_cluster
postgresql_cluster copied to clipboard
Offline installation does not contain pgbouncer
Offline installation(installation_method: "file") does not contain pgbouncer ,How to add pgbouncer to offline installation?
It is necessary to add such an opportunity.
In the meantime, you can install any package by defining it in variable packages_from_file
ok, very good
1. Looking forward to adding pgbouncer
2. nasty postgresql-libs-9.2.24,Is there a parameter to uninstall the RPM
[root@pgnode02 ~]# rpm -ivh /tmp/libpq5-14.4-42PGDG.rhel7.x86_64.rpm warning: /tmp/libpq5-14.4-42PGDG.rhel7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 442df0f8: NOKEY Preparing... ################################# [100%] file /usr/lib64/libpq.so.5 from install of libpq5-14.4-42PGDG.rhel7.x86_64 conflicts with file from package postgresql-libs-9.2.24-1.el7_5.x86_64 [root@pgnode02 ~]# yum revome postgresql-libs
3. Install pgbouncer package
` packages_from_file:
- "libpq5-14.4-42PGDG.rhel7.x86_64.rpm"
- "python3-psycopg2-2.8.6-1.rhel7.x86_64.rpm"
- "pgbouncer-1.17.0-10.rhel7.x86_64.rpm"
TASK [pgbouncer : Install pgbouncer package] *************************************************************************************************************************************************************************************************** ok: [192.168.0.31] fatal: [192.168.0.33]: FAILED! => {"changed": false, "msg": "No package matching 'pgbouncer' found available, installed or updated", "rc": 126, "results": ["No package matching 'pgbouncer' found available, installed or updated"]} fatal: [192.168.0.32]: FAILED! => {"changed": false, "msg": "No package matching 'pgbouncer' found available, installed or updated", "rc": 126, "results": ["No package matching 'pgbouncer' found available, installed or updated"]}
`
feel free to create PR.