Redhat Satelite

Latest response

Need to understand the redhat satelite patching procedure.

Responses

Hi Vikram,

Could you please give a bit more detail of what you wish to accomplish or how you update now?

Regards,

Jan Gerrit Kootstra

Wants to patch the servers through Satelite without user interference.

Hi,

You did not specify which version of Satellite you use. That is an important piece of information.

There are many ways you can achieve it.

In simple terms, a few examples for Satellite 5.x:

a) "Push-method".

Create Shell script on Satellite server, say patch-servers.sh (this is just a core part of the script, much more can be added, including LVM snapshots and so on):

#!/bin/sh
PATH=/usr/bin:/bin:/sbin; export PATH

 yum clean all

DRYRUN=$(yum check-update | egrep -v "^$|Loaded plugins|This system|subscription-manager")

if [ $? -eq 0 ]
then
   MYMSG="$SUCCESSSAT"
   logger $MYMSG
fi

if [ ! "$DRYRUN" ]
then
   logger "INFO There are no RHEL-released updates currently"
   echo "INFO There are no RHEL-released updates currently"
   exit 0
fi

vgcfgbackup

yum -y update

reboot

exit 0

Then push the patches from the satellite to a group of RHEL systems:

for list in $(spacecmd system_list | egrep -i "mysrv.dom" | tr 'A-Z' '[a-z]')
do
   if [ -f "./patch-servers.sh" ]
  then
      spacecmd -y -- system_runscript $list -f patch-servers.sh
  fi
done

b) "Pull-method".

From each server, simply run:

yum -y update && reboot

You can even set up a cron job on each client machine too.

Regards,

Dusan Baljevic (amateur radio VK2COT)

I am new to Satelite 6.3. We will be starting to patch remotely from Satelite. I would like to find a link to an explanation and instructions on how to accomplish remote patching. Can someone help me here?

Hello, an ad-hoc solution would be via Remote Execution feature:

https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/managing_hosts/chap-managing_hosts-running_remote_jobs_on_hosts#sect-Managing_Hosts-Executing_Remote_Jobs

If you are using Puppet or Ansible, it is possible to create a manifest/role and then run it through Puppet or Ansible as well. You can do this manually, externally or via Remote Execution.