{"id":25084148,"url":"https://github.com/ncounter/saltstack-spacewalk-postgresql-replication","last_synced_at":"2025-04-01T11:55:40.911Z","repository":{"id":36854956,"uuid":"41161913","full_name":"ncounter/SaltStack-Spacewalk-PostgreSQL-Replication","owner":"ncounter","description":"Set up SpaceWalk with two external replicated PostgreSQL Database with SaltStack","archived":false,"fork":false,"pushed_at":"2015-08-21T16:33:36.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T06:46:19.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"SaltStack","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/ncounter.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}},"created_at":"2015-08-21T15:01:20.000Z","updated_at":"2015-08-21T15:14:33.000Z","dependencies_parsed_at":"2022-09-10T13:11:10.894Z","dependency_job_id":null,"html_url":"https://github.com/ncounter/SaltStack-Spacewalk-PostgreSQL-Replication","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/ncounter%2FSaltStack-Spacewalk-PostgreSQL-Replication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncounter%2FSaltStack-Spacewalk-PostgreSQL-Replication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncounter%2FSaltStack-Spacewalk-PostgreSQL-Replication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ncounter%2FSaltStack-Spacewalk-PostgreSQL-Replication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ncounter","download_url":"https://codeload.github.com/ncounter/SaltStack-Spacewalk-PostgreSQL-Replication/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246635961,"owners_count":20809331,"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":[],"created_at":"2025-02-07T06:46:23.610Z","updated_at":"2025-04-01T11:55:40.894Z","avatar_url":"https://github.com/ncounter.png","language":"SaltStack","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SaltStack-Spacewalk-PostgreSQL-Replication\n\nThis project is a sample of Spacewalk installation and setup with a PostgreSQL replication solution implemented by PgPool-II and configured by SaltStack.\n\n##Requirements\n\n- one [minimal CentOS7](http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso) machine: name this machine `spacewalk`\n- two [openSuse 13.2](http://software.opensuse.org/132/en) machines: name these machines `postgres` and `postgres2` (names are setted for saltstack and pgpool-II configuration)\n- [SaltStack](http://docs.saltstack.com/en/latest/topics/installation/index.html) installed on each machine (salt-minion on openSuse, salt-master and salt-minion on centOS)\n\n\n```\n                                      +---postgresql---+ \n                                      |                | \n                                      |  openSuse13.2  | \n                                  ---\u003e|  Salt-minion   | \n                                 |    |  Postgresql93  | \n          +----spacewalk----+    |    |                | \n          |                 |    |    +----------------+ \n          |     CentOs7     |    |                       \n          |   Salt-master   |    |                       \n          |   Salt-minion   |----|                       \n          |    PgPool-II    |    |                       \n          |    Spacewalk    |    |    +---postgresql2--+ \n          |                 |    |    |                | \n          +-----------------+    |    |  openSuse13.2  | \n                                 |    |  Salt-minion   | \n                                  ---\u003e|  Postgresql93  | \n                                      |                | \n                                      +----------------+ \n```\n\n\n## SaltStack installation\n\nThis project uses SaltStack to configure the system.\n\nOn centOS, to install salt-minion and salt-master, run:\n```\nyum install salt-minion salt-master salt\n```\n\nOn both openSuse, to install salt-minion, run:\n```\nzypper install salt-minion\n```\n\nFor more details on installation and configuration of Salt see [the official installation docs](http://docs.saltstack.com/en/latest/topics/installation/index.html)\n\n\n## Prepare the installation\n\nCopy the `salt` folder in `/srv/` of the `spacewalk` machine (`/srv/salt` is the default SaltStack folder for states).\n\n\n## PostgreSQL\n\nFrom the salt-master, call the state to configure `postgresql` machines: this will install/configure PostgreSQL for Spacewalk setup.\n```\nsalt 'postgresql*' state.highstate\n```\n\u003cb\u003eP.S.: Be sure to do this step before the \"spacewalk state setup\".\u003c/b\u003e\n\n\n## PgPool-II and Spacewalk\n\nFrom the salt-master, call the state to configure the `spacewalk` machine: this will install/configure/start PgPool-II and Spacewalk.\n```\nsalt 'spacewalk' state.highstate\n```\n\n## Run Spacewalk\n\nNavigate in Spacewalk with [http://spacewalk](http://spacewalk).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncounter%2Fsaltstack-spacewalk-postgresql-replication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fncounter%2Fsaltstack-spacewalk-postgresql-replication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fncounter%2Fsaltstack-spacewalk-postgresql-replication/lists"}