In this tutorial we’ll learn how to install SpaceWalk on CentOS 7. We will also install and configure its prerequisites. The spacewalk is a free, open source Linux management program. It is an upstream community job for the Red Hat Satellite server. Using Spacewalk, we can deploy, manage and upgrade packs to Red Hat derived distributions like CentOS, Fedora, and Scientific Linux etc.. It’s a cool web interface which will help us to see the status of software updates in the clients and initiate update tasks. Spacewalk provides provisioning capabilities that enable you to kick-start provision systems and handle and deploy configuration files. It also has virtualization capabilities to enable you to provision, control, manage, and track virtual KVM and Xen guests.
I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
- Operating System : CentOS 7 minimal installation
- Hostname : server.myvpsource.local
- IP Address : 192.168.1.150/24.
Install SpaceWalk on CentOS 7
Step 1. First, ensure your system is fully up-to-date by running the following:
yum -y update yum -y install epel-release
Step 2. Installing SpaceWalk.
First, Add Spacewalk official repository as shown below depending upon the distribution you use:
rpm -Uvh http://yum.spacewalkproject.org/2.3/RHEL/7/x86_64/spacewalk-repo-2.3-4.el7.noarch.rpm
Now, update the repository lists:
yum repolist yum update
Step 3. SpaceWalk Database.
Spacewalk needs a database server to store it’s primary data. By default, SpaceWalk supports PostgreSQL (version 8.4 or higher) or Oracle ( version 10g or higher) as a database for storing its data:
yum install spacewalk-postgresql
If you have installed embedded database, then use below command:
if you have setup database manually, then use below commands depend on database type:
spacewalk-setup --disconnected --external-postgresql
Step 4. Configure Spacewalk server.
Your Spacewalk server should have a resolvable fully-qualified domain name (FQDN) such as “hostname.domain.com”, to do that; edit /etc/hosts file:
Modify it according to your environment.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.150 server.myvpsource.local server
On complete, start the Spacewalk service if not started automatically:
Step 5. Configure Firewall for SpaceWalk.
You need to allow few ports via your Firewall and router:
firewall-cmd --add-service=https --permanent firewall-cmd --add-service=http --permanent firewall-cmd --reload
Step 6. Accesing SpaceWalk
SpaceWalk will be accessible on port 80 by default, As installation is now successful, you may proceed to navigate to http://server-ip/ or http://server-hostname/ and complete the required the steps to finish the installation. Enter the administrator account name, password, first name, last name and Email address etc. Then, click Create Login button.
Congratulation’s! You have successfully install and configured SpaceWalk on your CentOS 7 server. Thanks for using this tutorial for installing SpaceWalk on CentOS 7 system.