one of the  best  definitions of  spacewalk  is that  its  clone  of  Satellite  Redhat  server . called upstream community project of  Redhat  Satellite . and can  provide the bellow capabolities

  • Inventory your systems (hardware and software information)
  • Install and update software on your systems
  • Collect and distribute your custom software packages into manageable groups
  • Provision (kickstart) your systems
  • Manage and deploy configuration files to your systems
  • Provision virtual guests
  • Start/stop/configure virtual guests
  • Distribute content across multiple geographical sites in an efficient manner

What is  Spacewalk Proxy   ? 

Spacewalk Proxy, the upstream version of Red Hat Satellite Proxy product, connects to your central Spacewalk server and caches the contents from the Central server. Then, it distributes the contents to various geographical locations and reduces the load of the Central Spacewalk server.
So, eventually, it reduces the downtime and increases the download speed for the client systems.

The   best  system to test   is  on Centos systems like  6 and  7   versions release , but  this  install way  you can also use it  for  Redhat / Centos /Scientific Linux / Fedora

our tutorial will go about  install Spacewalk  on Centos7:

My test   machine  : 

We  need  to add  extra Repo to make this installation possible  : 

First   lets  setup Spacewalk repository :  latest   release of the project  is 2.5

Install   EPEL repo in centos 7 

 

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
warning: /var/tmp/rpm-tmp.vbMZ8F: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing… ################################# [100%]
Updating / installing…
1:epel-release-7-8 ################################# [100%]

Now add Jpackage Repo:

 

please  dont use 6.o version   to   avoidee  some  dependencies issues . jus t  use version 5.0

setup  firewall rules to  allow http  and  https  

Please  add port 5222 if you want to push actions to client machines and 5269 for push actions to a Spacewalk Proxy,  and 69 udp   port if you want to use tftp.

Hostname :

ensure that ur  hotname resolvable fully-qualified domain name (FQDN) such as “hostname.example.com”,   to make this add this  to  /etc/hosts file.

Setup The Database :

Spacewalk needs database  to   store its  Primary Database. the  most preferable database to use is  postgresql .  the  Spacewalk support  other  databases  like oracle  10 and  higher

Lets  go  with default  embedded database : Postgresql

Install   Database:

Install   Spacewalk Core  :

Hope that are  your  dependencies are OK   (around 278  packages)

Setup Spacewalk :

spacewalk-setup –disconnected

Please follow the instructions bellow step by step

screenshot-from-2016-09-15-21-58-14

Now  login to console https:// hostname  and  make your  admin user and  password

screenshot-from-2016-09-15-21-57-41

 

screenshot-from-2016-09-15-22-01-12

 

Lets  Start The  configuration  :

create a CentOS Base Repository

Go to Channels -> Manage Software Channels -> Manage Repositories -> Create Repository.

screenshot-from-2016-09-15-23-36-41
Create a Parent Channel

Go to Channels -> Manage Software Channels -> Create Channel.

screenshot-from-2016-09-15-23-40-14

 

Assingn  the CentOS Base Repository to the Child Channel

Go to Channels -> Manage Software Channels -> select the created channel -> Repositories -> select the previously created repository -> Update repositories.

screenshot-from-2016-09-15-23-54-49

 

Repo   assigned to channels 

 

Spacewalk repo sync 

 

 

Spacewalk Activation Keys

Go to Systems -> Activation Keys -> Create Key.

screenshot-from-2016-09-16-00-06-56

 

screenshot-from-2016-09-16-00-05-53

 

Setup Spacewalk Client

Add a yum repository for Spacewalk as well as a matching EPEL repository:

Install Spacewalk client packages:

Install Spacewalk’s CA certificate on the server to enable SSL communication:

Register a client system with Spacewalk using the activation key that we have created earlier:

 

You are   Done .

you can create   many Repo and  call  it ( Centos 6  / or EPEL  or  Spacewalk or  others ),    its  very  handy tools  for big  companies that  are  not  connected directly to the  internet

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here