Spacewalk logo source: spacewalk website

Server Information

Host Name: spacewalk.example.com

IP Address: 192.168.56.111

Operating System : CentOS 7

Step 1: Install EPEL repository & Spacewalk Repository

#yum install epel-release -y

#yum install -y yum-plugin-tmprepo

#yum install -y spacewalk-repo --tmprepo=https://copr-be.cloud.fedoraproject.org/results/%40spacewalkproject/spacewalk-2.9/epel-7-x86_64/repodata/repomd.xml --nogpg

Step 2: Install the database server and Spacewalk packages

#yum -y install spacewalk-setup-postgresql

#yum -y install spacewalk-postgresql

Step 3: Configure the Firewalld

firewall-cmd --add-service=http
firewall-cmd --add-service=https
firewall-cmd --runtime-to-perm

Step 4: Configure the hosts file

replace the server name and IP address with your spacewalk server name

#vim /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.56.111 spacewalk.example.com spacewalk

save the file wq:!

Step 5: Install Spacewalk

#spacewalk-setup --skip-fqdn-test

  • 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? admin@spacewalk.example.com
  • Performing initial configuration.
  • Configuring apache SSL virtual host.
    Should setup configure apache's default ssl server for you (saves original ssl.conf) [Y]? y
    ** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave
  • Configuring jabberd.
  • Creating SSL certificates.
    CA certificate password?
    You must enter a password.
    CA certificate password?
    Re-enter CA certificate password?
    Cname alias of the machine (comma seperated)? spacewalk
    Organization? spacewalk
    Organization Unit [spacewalk.example.com]? spacewalk
    Email Address [admin@spacewalk.example.com]?
    City? spacewalk city
    State? spacewalk state
    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]? y
  • Restarting services.

Finally After the installation is completed you should be able to see this

Step 6 : Use your favorite browser to navigate to spacewalk server web administration

Fill out your admin information and click create organization button

Sources:

  1. https://github.com/spacewalkproject/spacewalk/wiki/HowToInstall#installing-spacewalk