{"id":19126539,"url":"https://github.com/jradtilbrook/ansible-role-pgbouncer","last_synced_at":"2025-05-05T20:53:13.139Z","repository":{"id":78265392,"uuid":"81802109","full_name":"jradtilbrook/ansible-role-pgbouncer","owner":"jradtilbrook","description":"Ansible PgBouncer role","archived":false,"fork":false,"pushed_at":"2024-03-15T15:20:25.000Z","size":16,"stargazers_count":9,"open_issues_count":1,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T12:13:42.254Z","etag":null,"topics":["ansible","database","postgres","postgresql"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/jradtilbrook/pgbouncer/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jradtilbrook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-13T08:29:07.000Z","updated_at":"2024-10-09T10:39:51.000Z","dependencies_parsed_at":"2024-11-09T05:39:40.669Z","dependency_job_id":"082db279-696e-4764-978e-98647803525e","html_url":"https://github.com/jradtilbrook/ansible-role-pgbouncer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jradtilbrook%2Fansible-role-pgbouncer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jradtilbrook%2Fansible-role-pgbouncer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jradtilbrook%2Fansible-role-pgbouncer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jradtilbrook%2Fansible-role-pgbouncer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jradtilbrook","download_url":"https://codeload.github.com/jradtilbrook/ansible-role-pgbouncer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252576661,"owners_count":21770718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","database","postgres","postgresql"],"created_at":"2024-11-09T05:39:34.360Z","updated_at":"2025-05-05T20:53:13.130Z","avatar_url":"https://github.com/jradtilbrook.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: PgBouncer [![Build Status](https://travis-ci.org/jradtilbrook/ansible-role-pgbouncer.svg?branch=master)](https://travis-ci.org/jradtilbrook/ansible-role-pgbouncer)\n\nThis role installs and configures the PgBouncer connection pooler for\nPostgreSQL.\n\nIt has only been designed to work on Ubuntu 16.04, but other Debian flavours\nshould also work.\n\n\n## Requirements\n\nNone.\n\n\n## Role Variables\n\nThe `pgbouncer_databases` array allows a very dynamic database setup. Any\nproperty allowed in the connection string can be defined under this array and\nwill automatically be added to the alias definition. The example below\nconfigures a `dev` database alias that pools connections to the `postgres`\ndatabase on `postgres:5432` connecting as `foo:md5asdofiasodfa09f9832f`. You can\ndefine more databases in the same fashion.\n\n```yaml\npgbouncer_databases:\n  - dev:\n      host: postgres # or the actual ip address\n      port: 5432\n      dbname: postgres\n      user: foo\n      password: md5asdofiasodfa09f9832f\n```\n\nThis role can also optionally install the `postgresql-client` package for\ncommand-line access to PostgreSQL or PgBouncer. To install this package set\n`pgbouncer_install_psql: true`.\n\nThe configuration template allows some values to be overridden. To achieve this,\ncreate a variable named after the configuration property you want to change and\nprefix it with `pgbouncer_`. For example, to override the default `listen_port`\nof 6432, pass a variable named `pgbouncer_listen_port`.  See the template file\nfor other configs that can be overridden this way. Note that not all settings\nare available, only some common ones that I use.\n\n**Note:** Some variables expect an array - it should be obvious which ones.\n\nSee the [`defaults/main.yml`](defaults/main.yml) for more descriptions of other\nvariables. You should also check\n[`templates/pgbouncer.ini.j2`](templates/pgbouncer.ini.j2) for possible extra\nvariables you can set.\n\n`pgbouncer_install_state`: This is useful for updating PgBouncer to newer\nversions after it has already been installed. Use `latest` to achieve this\nfunctionality.\n\n\n## Resources\n\nDocumentation related to PgBouncer can be found at the links below:\n\n- [documentation](https://pgbouncer.github.io/)\n- [github repository](https://github.com/pgbouncer/pgbouncer)\n\n\n## Dependencies\n\nNone.\n\n\n## Example Playbook\n\n```yaml\n- hosts: servers\n  become: yes\n\n  roles:\n    - role: jradtilbrook.pgbouncer\n      pgbouncer_databases:\n        - testing:\n            host: postgres\n            port: 5432\n            dbname: postgres\n```\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjradtilbrook%2Fansible-role-pgbouncer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjradtilbrook%2Fansible-role-pgbouncer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjradtilbrook%2Fansible-role-pgbouncer/lists"}