Spacewalk is the package and system management solution for Redhat derived Linux operating system such as CentOS, Scientific Linux and Fedora, by the spacewalk community. It is released under GPLv2 license. It offers more flexible way to do
- Inventory of the systems
- Install and Update system packages.
- Configuring Kick-start installation.
- Deploy and Manage the configuration files from singe location
- Start / Stop / Configure the guests.
- Distribute the content across the multiple Geo graphical location using spacewalk proxy.
It provides the web interface to manage and view the updates for the system that are registered with the SpaceWalk, we can initiate the task such as install, update, inventory, and so on. Here is the small tutorial about installing SpaceWalk on CentOS 6.
Before installing SpaceWalk on the CentOS, system must be setup to have the required repositories to download the dependencies. Lets first setup the SpaceWalk repository.
rpm -Uvh http://yum.spacewalkproject.org/2.0/RHEL/6/x86_64/spacewalk-repo-2.0-3.el6.noarch.rpm
Setup Jpackage Repo:
Add the following.
Setup EPEL repo on CentOS 6.
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sed -i 's/SELINUX=enforcing/SELINUX=disabed/' /etc/selinux/config
Run the following on terminal.
iptables -F /etc/init.d/iptables save
Setup SpaceWalk Database:
SpaceWalk supports either PostgreSQL (8.4 or higher) or Oracle ( 10g or higher) database, you can skip the following embedded data base setup to use the external database.
SpaceWalk has the embedded setup for PostgrSQL database which will do the automatic SpaceWalk installation without having user intervention to enter the database information. Embedded database method is very easy to setup and run the SpaceWalk in no time; this is very useful for those who do not have any database knowledge.
yum install spacewalk-setup-postgresql
You can use the external PostgreSQL or Oracle database to install SpaceWalk, you can find the tons of documents online to setup the database.
If you are planning use PostgreSQL database.
yum install spacewalk-postgresql
If you are planning to use Oracle database.
yum install spacewalk-oracle
If you have installed embedded database, then use. It will ask you to enter the admin mail and organization details to generate the self signed certificate for secured access.
if you have setup database manually, then use. It will ask you to enter the external database details.
spacewalk-setup --disconnected --external-db
On complete, start the SpaceWalk service.
make the service to start automatically with the system.
chkconfig spacewalk on
Now you can access the SpaceWalk via web browser.
Next tutorial about Configuring the SpaceWalk to distribute the updates for CentOS clients.