Setup Spacewalk | CentOs 7
Spacewalk is a Linux server management tool where you can deploy VM’s install packages and
keep your system up to date.
Everything in this tutorial is done as root
Enable epel repositories
yum install epel-release
Enable the JPACKAGE repo
sudo tee /etc/yum.repos.d/jpackage-generic.repo << EOF
Add the following lines and press enter.
Enable Spacewalk repo.
yum install http://yum.spacewalkproject.org/2.4/RHEL/7/x86_64/spacewalk-repo-2.3-2.el7.noarch.rpm
You can use various types of database but the most popular is Postreql
sudo yum install spacewalk-setup-postgresql
After we have added the repositories and installed our PostSQL database manager
it is time to install Spacewalk
You are going to be prompted for CA password and CA details I tried a couple of times
and was getting the same error over and over again until
I found out that you can’t use ASCII characters so dont try that! waste of time.
[example@spacewalk ~]$ sudo spacewalk-setup --disconnected
* 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? localdomain@localhost
* Performing initial configuration.
* Activating Spacewalk.
** Loading Spacewalk Certificate.
** Verifying certificate locally.
** Activating Spacewalk.
* 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?
Re-enter CA certificate password?
Organization Unit [spacewalk]?
Email Address [localdomain@localhost]?
Country code (Examples: "US", "JP", "IN", or type "?" to see a list)? BE
** 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]? n
* Restarting services.
Visit https://spacewalk to create the Spacewalk administrator account.
after the setup is complete you should go into your browser and type https://spacewalk or if you have made a local domain then use that instead.