This project is a sample of Spacewalk installation and setup with a PostgreSQL replication solution implemented by PgPool-II and configured by SaltStack.
##Requirements
- one minimal CentOS7 machine: name this machine
spacewalk
- two openSuse 13.2 machines: name these machines
postgres
andpostgres2
(names are setted for saltstack and pgpool-II configuration) - SaltStack installed on each machine (salt-minion on openSuse, salt-master and salt-minion on centOS)
+---postgresql---+
| |
| openSuse13.2 |
--->| Salt-minion |
| | Postgresql93 |
+----spacewalk----+ | | |
| | | +----------------+
| CentOs7 | |
| Salt-master | |
| Salt-minion |----|
| PgPool-II | |
| Spacewalk | | +---postgresql2--+
| | | | |
+-----------------+ | | openSuse13.2 |
| | Salt-minion |
--->| Postgresql93 |
| |
+----------------+
This project uses SaltStack to configure the system.
On centOS, to install salt-minion and salt-master, run:
yum install salt-minion salt-master salt
On both openSuse, to install salt-minion, run:
zypper install salt-minion
For more details on installation and configuration of Salt see the official installation docs
Copy the salt
folder in /srv/
of the spacewalk
machine (/srv/salt
is the default SaltStack folder for states).
From the salt-master, call the state to configure postgresql
machines: this will install/configure PostgreSQL for Spacewalk setup.
salt 'postgresql*' state.highstate
P.S.: Be sure to do this step before the "spacewalk state setup".
From the salt-master, call the state to configure the spacewalk
machine: this will install/configure/start PgPool-II and Spacewalk.
salt 'spacewalk' state.highstate
Navigate in Spacewalk with http://spacewalk.