How to Install Spacewalk 2.8 in CentOS7/RHEL7

Assalamualaikum..
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.

Pre-Requisites

  • 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

Setup Java Packages
# curl -O https://copr.fedorainfracloud.org/coprs/g/spacewalkproject/java-packages/repo/epel-7/group_spacewalkproject-java-packages-epel-7.repo

Setup Spacewalk Repo
# rpm -Uvh https://copr-be.cloud.fedoraproject.org/results/@spacewalkproject/spacewalk-2.8/epel-7-x86_64/00736372-spacewalk-repo/spacewalk-repo-2.8-11.el7.centos.noarch.rpm

Configure firewall
# 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

Install Spacewalk
# yum -y install spacewalk-postgresql

Initialize the PostgreSQL database before starting the installation.
# postgresql-setup initdb

Configuring Spacewalk
# spacewalk-setup

On complete, start the Spacewalk service if not started automatically.
# /usr/sbin/spacewalk-service start

Now open up your browser and navigate it to
https://ip-add-ress OR https://your-domain-name

DONE!

wassalam..

This entry was posted in Linux, RedHat and tagged . Bookmark the permalink.