{"id":16451592,"url":"https://github.com/jobcespedes/pg_cluster","last_synced_at":"2026-04-09T23:45:40.148Z","repository":{"id":86634004,"uuid":"263973491","full_name":"jobcespedes/pg_cluster","owner":"jobcespedes","description":"Ansible role for a database cluster using Postgres (11), Pgpool2 (4.0) and Debian (10).","archived":false,"fork":false,"pushed_at":"2021-02-15T21:24:46.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T07:41:00.874Z","etag":null,"topics":["ansible","ansible-role","cluster","database","molecule","pgpool2","postgres"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/jobcespedes.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":"2020-05-14T16:54:05.000Z","updated_at":"2022-04-06T11:28:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"07d06c35-c8d0-487b-badb-81a479594eb4","html_url":"https://github.com/jobcespedes/pg_cluster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobcespedes%2Fpg_cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobcespedes%2Fpg_cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobcespedes%2Fpg_cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobcespedes%2Fpg_cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jobcespedes","download_url":"https://codeload.github.com/jobcespedes/pg_cluster/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240876861,"owners_count":19871903,"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","ansible-role","cluster","database","molecule","pgpool2","postgres"],"created_at":"2024-10-11T10:09:21.459Z","updated_at":"2026-04-09T23:45:35.105Z","avatar_url":"https://github.com/jobcespedes.png","language":"HTML","funding_links":["https://www.buymeacoffee.com/jobcespedes"],"categories":[],"sub_categories":[],"readme":"Role Name: pg_cluster\n=========\n\n[![Build Status](https://travis-ci.org/jobcespedes/pg_cluster.svg?branch=master)](https://travis-ci.org/jobcespedes/pg_cluster) [![Buy me a coffee](https://img.shields.io/badge/$-BuyMeACoffee-blue.svg)](https://www.buymeacoffee.com/jobcespedes)\n\nA database cluster using Postgres (11), Pgpool2 (4.0) and Debian (10).\n\nThe cluster has 3 nodes. Each node runs Pgpool2 and Postgres. Pgpool2 and Postgres have two roles each. For Postgres, those roles are: primary and standby. For Pgpool2, those roles are: active and stanby. Pgpool and Postgres roles are independent. However, the first node starts with both, active (pgpool2) and primary(postgres). It has a Floating IP. The rest of nodes have standby role (pgpool and postgres).\n```Plaintext\n                  FLOATING IP\n                 +-----------+     WATCHDOG\n        +--------|  PGPOOL2  |--------+\n        |        ------------- nic0   |\n        |        |           |        |\n        |        | POSTGRES  |        |\n        |        | master    |        |\n        |        +-----------+        |\n        |          nic1|              |\n  +-----------+        |        +-----------+\n  |  PGPOOL2  |        |        |  PGPOOL2  |\n  |-----------|        |        -------------\n  |           |        |        |           |\n  | POSTGRES  |        |        | POSTGRES  |\n  | standby   |-----------------| stanby    |\n  +-----------+   REPLICATION   +-----------+\n```\n\nRequirements\n------------\n\n- Debian 10\n- openssh-server\n- netaddr\n\nRole Variables\n--------------\n\n- See [`defaults/main.yml`](defaults/main.yml).\n\nDependencies\n------------\n\n- Depends on other Ansible roles: false\n\nExample Playbook\n----------------\n\n```yaml\n- hosts: all\n  roles:\n    - jobcespedes.pg_cluster\n```\n\nFor verifying installation\n```yaml\n- hosts: all\n  tasks:\n    - import_role:\n        name: jobcespedes.pg_cluster\n        tasks_from: verify\n```\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\n\nJob Céspedes Ortiz: jobcespedes@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjobcespedes%2Fpg_cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjobcespedes%2Fpg_cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjobcespedes%2Fpg_cluster/lists"}