• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Spacewalk Installation Steps On CentOS/RHEL

by admin

Spacewalk is an open-source configuration management tool sponsored by Red Hat. Spacewalk is an alternate of the Redhat network satellite server on Centos/Fedora/Scientific Linux. Spacewalk is the upstream project for the source of the Red Hat Network Satellite.

It provides a management interface for software content across registered servers. Some of important Features of Spacewalk are mentioned below:

  • Manage Inventory of Servers (hardware and software information)
  • Install and update software on Servers
  • Manage and deploy configuration files to your systems
  • Monitor your systems/Servers

Spacewalk Installation Steps on CentOS 6.X/RHEL 6.X

Step 1: Setup Spacewalk Repo.

# rpm -Uvh http://yum.spacewalkproject.org/1.9/RHEL/6/x86_64/spacewalk-repo-1.9-1.el6.noarch.rpm

Step 2: Setup Additional Repositories.

For Spacewalk on CentOS, RHEL 6 and Fedora, We nee additional dependencies that are needed from jpackage. Create a file using below command:

cat > /etc/yum.repos.d/jpackage-generic.repo << EOF
[jpackage-generic]
name=JPackage generic
#baseurl=http://mirrors.dotsrc.org/pub/jpackage/5.0/generic/free/
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0
enabled=1
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
EOF

Enable EPEL Repository: Spacewalk requires a Java Virtual Machine with version 1.6.0 or greater. EPEL – Extra Packages for Enterprise Linux contains a version of the openjdk that works with Spacewalk.

# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Step 3: Spacewalk Database Server Installation.

Spacewalk uses database to store its primary data , it supports either PostgreSQL or Oracle RDBMS. In our case we are using postgresql.

# yum install spacewalk-setup-embedded-postgresql

Step 4: Installing Spacewalk.

# yum install spacewalk-postgresql

Create a file under /root called 'answer' with below contents:

# vi /root/answers
admin-email = root@localhost
ssl-set-org = Nextstep4it
ssl-set-org-unit = IT
ssl-set-city = Delhi
ssl-set-state = Delhi
ssl-set-country = IN
ssl-password = spacewalkpasswd
ssl-set-email = root@localhost
ssl-config-sslvhost = Y
db-backend=postgresql
db-name=spacewalkdb
db-user=spacewalk
db-password=spacewalkpasswd
db-host=localhost
db-port=5432
enable-tftp=Y

Now Install Spacewalk with an Answer File.

# spacewalk-setup --disconnected –answer-file=/root/answers

After spacewalk-setup is complete, the application is ready to use. The above command will create the PostgreSQL database environment for spacewalk and will create ssl certificates and will start the services like tomcat.

Step 5: Access the Spacewalk using the below URL and set an administrative account.

Open Web browser and type 'https://[Hostname/IP]', replace host-name or ip address according to your setup. After Setting the Administrative account, we can login to spacewalk admin GUI:

spacewalk installation in CentOS RHEL 6

Spacewalk Service Commands:

# /usr/sbin/spacewalk-service [stop|start|restart]

Filed Under: CentOS/RHEL, CentOS/RHEL 6, Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL : How to Disable / Enable direct root and non-root user ssh login
  2. How to use shell aliases in Linux
  3. CentOS / RHEL 7 : How to configure kdump
  4. coredumpctl Command Examples in Linux
  5. How To Create/Remove and Mount a Stratis Filesystem in CentOS/RHEL 8
  6. shred: command not found
  7. brotli: Compress/uncompress files with Brotli compression
  8. steghide Command Examples in Linux
  9. rpc.statd[PID]: Failed to create listener xprt (statd, 1, udp6) – CentOS/RHEL 6, 7
  10. lsns: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Chezmoi: A multi-machine dotfile manager, written in Go
  • cheat: Create and view interactive cheat sheets on the command-line
  • chars: Display names and codes for various ASCII and Unicode characters and code points
  • chafa: Image printing in the terminal

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright