This is the simplest way on how to install Spacewalk in CentOS 7 or RHEL 7. For details and complete explanation please go to official page HowToInstall Spacewalk.
- Outbound open ports 80, 443
- Inbound open ports 80, 443, 5222 (only if you want to push actions to client machines) and 5269 (only for push actions to a Spacewalk Proxy), 69 udp if you want to use tftp
- Storage for database: 250 KiB per client system + 500 KiB per channel + 230 KiB per package in channel (i.e. 1.1GiB for channel with 5000 packages)
- Storage for packages (default /var/satellite): Depends on what you’re storing; Red Hat recommend 6GB per channel for their channels
- 2GB RAM minimum, 4GB recommended
- Make sure your underlying OS is fully up-to-date.
- If you use LDAP as a central identity service and wish to pull user and group information from it, see SpacewalkWithLDAP
- In the following steps we assume you have a default, CentOS7/RHEL7 installation of your operating system, without any customized setup of yum repositories, user management, security, etc.
Setting up FQDN
# vi /etc/hosts
add below line
192.168.122.122 spacewalk.skrinhitam.local spacewalk
Setup EPEL Repo
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# firewall-cmd --permanent --add-service=http ; firewall-cmd --permanent --add-service=https ; firewall-cmd --runtime-to-perm
# firewall-cmd --reload
PostgreSQL server, set up by Spacewalk
# yum -y install spacewalk-setup-postgresql
# yum -y install spacewalk-postgresql
Initialize the PostgreSQL database before starting the installation.
# postgresql-setup initdb
On complete, start the Spacewalk service if not started automatically.
# /usr/sbin/spacewalk-service start