[Spacewalk-list] spacewalk upgrade for client

Jan Hutař jhutar at redhat.com
Thu Feb 11 05:48:14 UTC 2016


On Wed, 3 Feb 2016 11:09:00 +1300 Benjamin Fernandis
<benjo11111 at gmail.com> wrote:

> Hi,
> 
> In previous we are using spacewalk version 2.3. Now we created
> new server which has latest version 2.4 . What would be best
> way to upgrade clients to connect with new spacewalk server
> which has 2.4 version.

Could you simply registered all clients currently registered to
2.3 machine to 2.4? Something like this on the client:

  # server="hostname of your 2.4 server"
  # cp -pr /etc/sysconfig/rhn{,.BACKUP}
  # wget -q -O /etc/sysconfig/rhn/RHN-ORG-TRUSTED-SSL-CERT https://$server/pub/RHN-ORG-TRUSTED-SSL-CERT --no-check-certificate || curl -o /etc/sysconfig/rhn/RHN-ORG-TRUSTED-SSL-CERT https://$server/pub/RHN-ORG-TRUSTED-SSL-CERT --insecure
  # echo "sslCACert=/etc/sysconfig/rhn/RHN-ORG-TRUSTED-SSL-CERT" >> /etc/sysconfig/rhn/up2date
  # echo "serverURL=https://$server/XMLRPC" >> /etc/sysconfig/rhn/up2date
  # rhnreg_ks --force --username=admin --password=nimda

> I am thinking to remove client packages from client machine
> and setup 2.4 repo and install accordingly. Please suggest me
> if is there any better way for this.

After you have the clients registered on your Spacewalk 2.4
server, you can add custom child channel where you have 2.4
client repo synced and just update the clients.

> what is best way to use spacewalk for update systems. we
> thinking to pull updates from spacewalk by running yum update
> at client end.

I would have rhnsd or osad running on the client and would use
Spacewalk's webUI to push updates to the clients.

> do we require to move existing base repo which comes with
> centos after installation to use spacewalk repo in yum update ?

No, you can have additional repos configured on your clients
(/etc/yum.repos.d/*.repo) besides Spacewalk channels.

But for a convenience reasons, I would create child channel and
sync that repo to the Spacewalk. That way you can easily manage
which system is subscribed into the channel and which is not.

> Thanks
> Ben

If you are new to Spacewalk, I would suggest reading:

https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html/Client_Configuration_Guide/chap-Configuring_Client_Applications.html
https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html/Getting_Started_Guide/sect-Creating_and_Managing_Custom_Channels.html

and go through the rest of docs (well, lots of reading).

Regards,
Jan



-- 
Jan Hutar     Systems Management QA
jhutar at redhat.com     Red Hat, Inc.




More information about the Spacewalk-list mailing list