{"id":19701234,"url":"https://github.com/dockpack/base_postgres","last_synced_at":"2026-05-13T18:17:07.982Z","repository":{"id":42080405,"uuid":"97808038","full_name":"dockpack/base_postgres","owner":"dockpack","description":"🐘 Ansible role to install PostgreSQL on one or two machines (primary/replica).","archived":false,"fork":false,"pushed_at":"2023-08-18T22:09:50.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-10T10:57:52.063Z","etag":null,"topics":["database","hacktoberfest","postgresql","postgresql-database","sql"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/dockpack.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":"2017-07-20T08:03:17.000Z","updated_at":"2023-10-09T14:10:51.000Z","dependencies_parsed_at":"2025-01-10T11:06:25.154Z","dependency_job_id":null,"html_url":"https://github.com/dockpack/base_postgres","commit_stats":null,"previous_names":[],"tags_count":18,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockpack%2Fbase_postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockpack%2Fbase_postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockpack%2Fbase_postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dockpack%2Fbase_postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dockpack","download_url":"https://codeload.github.com/dockpack/base_postgres/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241014864,"owners_count":19894314,"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":["database","hacktoberfest","postgresql","postgresql-database","sql"],"created_at":"2024-11-11T21:08:17.388Z","updated_at":"2026-05-13T18:17:02.956Z","avatar_url":"https://github.com/dockpack.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"PostgreSQL primary/replica\n=========\n\nPostgreSQL 12 on one or two RHEL/Centos boxes.\n\nRequirements\n------------\nInternet. RedHat Linux 7 or 8, or Centos 7 or 8.\n\nThis role wast tested with molecule:\n\n\nRole Variables\n--------------\nThe first three vars you must set, the others are optional.\n\n\n1. `base_postgres_mip`  # This is the ip address of the primary/master database\n1. `base_postgres_user` # This is your user\n1. `base_postgres_pass` # This is your password\n\n1. `base_postgres_net`  # 192.168.20.0/24 This is the subnet granted access\n1. `base_postgres_role` # With 2 hosts the one is primary, the other replica\n1. `base_postgres_sip`  # The ip address of the replica when you use 2 databases\n\n\nDependencies\n------------\nRedHat-like Linux\n\nExample\n----------------\n\n# Inventory\n[dataservers]\ndata1 role=primary\ndata2 role=replica\n\n# Playbook for dbserver tier\n\n\n```yaml\n---\n- name: Database deployment\n  hosts: dbservers\n  become: yes\n  gather_facts: True\n\n  vars_files:\n    - dbservers/secrets.yml\n\n  pre_tasks:\n    - include: dbservers/pre_tasks.yml\n\n  roles:\n    - dockpack.base_postgres_role\n    - rsyslog\n\n  tasks: []\n\n  post_tasks:\n    - include: dbservers/post_tasks.yml\n```\n\nLicense\n-------\n\nBSD, MIT\n\nAuthor Information\n------------------\nhttp://twitter.com/bbaassssiiee\nhttps://github.com/dockpack/base_postgres_role.git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockpack%2Fbase_postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdockpack%2Fbase_postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockpack%2Fbase_postgres/lists"}