How to install Spacewalk 1I was looking for a management server for my growing network lab, and I chose Spacewalk for starting point. I needed something like WSUS for CentOS, and Spacewalk provides that ability – patch management. But soon I’ve realized that gained so much more! Because Spacewalk is not only a patch management solution, but server management solution, that solves many problems with orchestrating many CentOS servers, and it is free to use. The capabilities of this server includes:

  • Inventory your systems (hardware and software information)
  • Install and update software on your systems
  • Collect and distribute your custom software packages into manageable groups
  • Provision (kickstart) your systems
  • Manage and deploy configuration files to your systems
  • Provision virtual guests
  • Start/stop/configure virtual guests
  • Distribute content across multiple geographical sites in an efficient manner

As you can see, it’s a swiss knife in server management! In these articles we will talk about the most interesting features of this system. But to start using this system – at first, we must install it! So the first article is about how to install Spacewalk to a new CentOS 7 Clean installation

Part One – How to install Spacewalk

Part Two – How to configure channels in Spacewalk

Part Three – How to install and register clients with Spacewalk

Part four – Spacewalk Features

Part Five – Spacewalk kickstart

CentOS 7 How to install Spacewalk Step 1 – Setting up Repos:

First step is rather simple – we are going to add necessary repos – Spacewalk, Jpackage and EPEL repos:

Spacewalk:

JPackage:

EPEL:

CentOS 7 How to install Spacewalk Step 2 – Database server

Spacewalk uses PostgreSQL for storing it’s data, sow hy don’t we let Spacewalk install and set up PostgreSQL without any intervention? It’s one of the most comfortable variants for installation:

CentOS 7 How to install Spacewalk Step 3 – Spacewalk installation

I definitely love the process of installation of Spacewalk in comparison with other heavy services. One command, and the job is done:

CentOS 7 How to install Spacewalk Step 4 – Firewall configuration

Now it is time for opening some ports for our newly installed server. We will add http service – for web-server to work correctly, port 5222 and 5269 for pushing actions to Spacewalk clients and proxies accordingly, and 69 udp if you want to use TFTP.

CentOS 7 How to install Spacewalk Step 5 – Configuration of application:

If you chose to install the default PostgreSQL database as I did, and installed spacewalk-setup-PostgreSQL, then just run spacewalk-setup –disconnected. This is how it looks:

CentOS 7 How to install Spacewalk Step 7 – Start the service, and you’re done!

Now – to the final step – start the service, and create a password for your account:

Now navigate to https://yous-server’s-name-or-ip-aaddress and enter password for your administrative account:

How to install Spacewalk 2

After these steps, you have fully configured and working Spacewalk Server!

And in the next article, we will configure Channels for it

Part One – How to install Spacewalk

Part Two – How to configure channels in Spacewalk

Part Three – How to install and register clients with Spacewalk

Part four – Spacewalk Features

Part Five – Spacewalk kickstart

Resources:

Official Spacewalk site