Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/angristan/ansible-pgbouncer
Ansible role for pgbouncer
https://github.com/angristan/ansible-pgbouncer
ansible debian pgbouncer postgresql ubuntu
Last synced: 6 days ago
JSON representation
Ansible role for pgbouncer
- Host: GitHub
- URL: https://github.com/angristan/ansible-pgbouncer
- Owner: angristan
- License: mit
- Created: 2019-02-17T11:15:39.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-22T12:43:43.000Z (almost 5 years ago)
- Last Synced: 2025-01-19T22:16:16.652Z (9 days ago)
- Topics: ansible, debian, pgbouncer, postgresql, ubuntu
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible role for pgbouncer
This role will install pgbouncer for the [PGDG APT repository](https://wiki.postgresql.org/wiki/Apt) (optional), and handle configuration and users.
To generate the `userlist.txt`, I recommend using [this script](https://github.com/angristan/pgbouncer_userlist_generator).
## Sample playbook
```yaml
---- hosts: myhost
roles:
- name: pgbouncer
tags: pgbouncer
vars:
pgbouncer_install_from_pgdg: true
pgbouncer_listen_addr: '*'
pgbouncer_pool_mode: transaction
pgbouncer_auth_type: md5
pgbouncer_users:
- name: blog
md5password: "{{ vault_pgbouncer_password_blog }}"
pgbouncer_databases:
- name: blog
user: blog
password: "{{ vault_postgresql_password_blog }}"
```