Spacewalk is an open-source system management tool that has a lot of functionality, such as software and hardware listings, remote command execution, kickstart installations, configuration file management, but one of the most widely used is the routing of RedHat and its derivatives (CentOS and Fedora), also used for Susse and it works on a server-agent principle and the program itself is a derivative of Redhat’s Satellite (Red Hat Satellite) program.
In short, you log in via the browser into the Space Console itself, list all the systems that are attached to the Spacewalk – and they can be rich, you will be shown immediately which critical packages have not been updated, you can select all or burn packages that you do not want to update and shut down update on all servers. In the program itself, you can track where something is installed and whether it is successful or not.
In this tutorial, we will only go through the installation of this program on CentOS 7 Linux, and in some further, we will deal with adding clients, repositories with client packages, other functionalities and more.
<span style="color: #00ff00;"># We are updating and installing additional and required repositories</span>
yum -y install epel-release
rpm -Uvh https://copr-be.cloud.fedoraproject.org/results/@spacewalkproject/spacewalk-2.9/epel-7-x86_64/00830557-spacewalk-repo/spacewalk-repo-2.9-4.el7.noarch.rpm
yum -y update
<span style="color: #00ff00;"># We open the required ports</span>
firewall-cmd --permanent --add-port=80/tcp
firewall-cmd --permanent --add-port=443/tcp
firewall-cmd --permanent --add-port=5222/tcp
<span style="color: #00ff00;"># The installation of the latest version had a problem with the dependent rhnpush package at the time of creating this manual, which was not found in any baptismal repository, so I removed the RPM when trying to install it on RedHat where it was necessary to enable some rhel-7-server-eus-rhn-tools -rpms repo. I downloaded and hung the package here for easy download</span>
curl -O https://kompjuteras.com/external/rhnpush-5.5.89-20.el7sat.noarch.rpm
echo "714d40f91688040aded5341278b9512e rhnpush-5.5.89-20.el7sat.noarch.rpm" | md5sum -c
[ $? -eq 0 ] && yum -y localinstall rhnpush-5.5.89-20.el7sat.noarch.rpm || echo "File is not OK"
<span style="color: #00ff00;"># Installation of the Spacewalk itself</span>
yum -y install spacewalk-setup-postgresql
yum -y install spacewalk-postgresql
Now remains the part about the initial setup, which runs with the command …
Where you need to fill in the required details regarding the setting of the SPacewalk and Certificate. Example from this installation…
[[email protected] ~]# spacewalk-setup
* Setting up SELinux..
** Database: Setting up database connection for PostgreSQL backend.
** Database: Installing the database:
** Database: This is a long process that is logged in:
** Database: /var/log/rhn/install_db.log
*** Progress: #
** Database: Installation complete.
** Database: Populating database.
*** Progress: ############################
* Configuring tomcat.
* Setting up users and groups.
** GPG: Initializing GPG and importing key.
** GPG: Creating /root/.gnupg directory
You must enter an email address.
Admin Email Address? [email protected] <<< insert your email address here
* Performing initial configuration.
* Configuring apache SSL virtual host.
Should setup configure apache's default ssl server for you (saves original ssl.conf) [Y]?
** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave
* Configuring jabberd.
* Creating SSL certificates.
CA certificate password? <<< Set a password here for the certificate itself
Re-enter CA certificate password? <<< Repeat password
Cname alias of the machine (comma seperated)? centos7test.linuxgain.com <<< name of the domain
Organization? LinuxGAIN <<< Name of the organization
Organization Unit [centos7test.linuxgain.com]? LinuxGAIN<<< Name of the organizational unit
Email Address [[email protected]]? <<< Enter email or just enter if this is OK
City? San Francisco <<< City
State? United States <<< State or Republic
Country code (Examples: "US", "JP", "IN", or type "?" to see a list)? US
** SSL: Generating CA certificate.
** SSL: Deploying CA certificate.
** SSL: Generating server certificate.
** SSL: Storing SSL certificates.
* Deploying configuration files.
* Update configuration in database.
* Setting up Cobbler..
Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y]?
* Restarting services.
Visit https://centos7test.linuxgain.com to create the Spacewalk administrator account.
Now go to: https://centos7test.linuxgain.com or https://192.168.56.100 and setup credentials
All you have to do is log in through the browser and adjust the details of the organization’s name and superadmin.
Which brings us to the Home screen of Spacewalk, which makes this part complete
Congratulations! You have successfully install Spacewalk on CentOS.