{"id":26237949,"url":"https://github.com/tom-sato/ansible-pgpool2","last_synced_at":"2026-04-21T23:02:46.620Z","repository":{"id":250469591,"uuid":"834457969","full_name":"tom-sato/ansible-pgpool2","owner":"tom-sato","description":"Ansible playbook that set up a PostgreSQL cluster with Pgpool-II.","archived":false,"fork":false,"pushed_at":"2025-03-07T13:45:22.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T14:33:56.513Z","etag":null,"topics":["ansible","pgpool-ii","pgpool2","postgresql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tom-sato.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-07-27T10:26:16.000Z","updated_at":"2025-03-07T13:45:27.000Z","dependencies_parsed_at":"2025-03-07T14:39:39.573Z","dependency_job_id":null,"html_url":"https://github.com/tom-sato/ansible-pgpool2","commit_stats":null,"previous_names":["tom-sato/ansible-pgpool2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-sato%2Fansible-pgpool2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-sato%2Fansible-pgpool2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-sato%2Fansible-pgpool2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tom-sato%2Fansible-pgpool2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tom-sato","download_url":"https://codeload.github.com/tom-sato/ansible-pgpool2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243351152,"owners_count":20276894,"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","pgpool-ii","pgpool2","postgresql"],"created_at":"2025-03-13T05:31:11.400Z","updated_at":"2026-04-21T23:02:46.614Z","avatar_url":"https://github.com/tom-sato.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Playbook for Pgpool-II\n==============================\n\nAnsible playbook that set up a PostgreSQL cluster with Pgpool-II.\n\nRequirements\n------------\n\nThe playbook is tested with the following software versions:\n\n* VirtualBox 7.1.x\n* Vagrant 2.4.x\n* Vagrant box\n  * [centos/7](https://portal.cloud.hashicorp.com/vagrant/discover/centos/7)\n  * [rockylinux/8](https://portal.cloud.hashicorp.com/vagrant/discover/rockylinux/8)\n  * [rockylinux/9](https://portal.cloud.hashicorp.com/vagrant/discover/rockylinux/9)\n  * [rockylinux/10](https://portal.cloud.hashicorp.com/vagrant/discover/rockylinux/10)\n* Ansible 2.16.x\n* PostgreSQL 9.2.x - 18.x\n* Pgpool-II 3.3.x - 4.7.x\n\nUsage\n-----\n\nTo run the playbook:\n\n```ShellSession\n$ git clone https://github.com/tom-sato/ansible-pgpool2.git\n$ cd ansible-pgpool2\n$ vagrant up --provision\n(snip)\nPLAY RECAP *********************************************************************\nnode-1                     : ok=110  changed=48   unreachable=0    failed=0    skipped=26   rescued=0    ignored=0\nnode-2                     : ok=75   changed=38   unreachable=0    failed=0    skipped=26   rescued=0    ignored=0\nnode-3                     : ok=75   changed=37   unreachable=0    failed=0    skipped=26   rescued=0    ignored=0\n\n$ vagrant ssh node-1\n$ sudo su - postgres\n$ pcp_node_info -h vip-1\nnode-1 5432 1 0.333333 waiting up primary primary 0 none none 2025-03-07 22:01:50\nnode-2 5432 1 0.333333 waiting up standby standby 0 streaming async 2025-03-07 22:03:54\nnode-3 5432 1 0.333333 waiting up standby standby 0 streaming async 2025-03-07 22:03:03\n$ pcp_watchdog_info -h vip-1\n3 3 YES node-1:9999 Linux node-1.example.com node-1\n\nnode-1:9999 Linux node-1.example.com node-1 9999 9000 4 LEADER 0 MEMBER\nnode-2:9999 Linux node-2.example.com node-2 9999 9000 7 STANDBY 0 MEMBER\nnode-3:9999 Linux node-3.example.com node-3 9999 9000 7 STANDBY 0 MEMBER\n```\n\nBy default, PostgreSQL and Pgpool-II are set up on all three hosts.\n\nThe hosts on which PostgreSQL and Pgpool-II are set up are specified by\nthe `groups` variable in `Vagrantfile`. It is also possible to set up\nPostgreSQL and Pgpool-II on separate hosts.\n\n```Ruby:Vagrantfile\n  groups = {\n    \"postgresql\" =\u003e [\"node-1\", \"node-2\", \"node-3\"],\n    \"pgpool2\" =\u003e [\"node-1\", \"node-2\", \"node-3\"]\n  }\n```\n\nLicense\n-------\n\nBSD\n\nAuthor Information\n------------------\n\nTomoaki Sato\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom-sato%2Fansible-pgpool2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftom-sato%2Fansible-pgpool2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftom-sato%2Fansible-pgpool2/lists"}