Satellite client question - restoring satellite membership after rebuild
OK so this one might seem a bit odd but essentially we're working on being able to take a client down for a full rebuild and get it back in sync with Puppet and RedHat Satellite afterward.
The puppet stuff was super easy, all we have to do is grab '/var/lib/puppet/ssl/*' from the host ahead of time and restore it after the rebuild.
The Satellite stuff doesn't seem as easy. I tried grabbing the systemID file and just putting that back in place but that didn't do it. What files do I need to restore on a host so that it can continue communicating with RHN Satellite after a rebuild?
Thanks!
PS: For those wondering, we're doing this so that lab host owners can run a simple shell script on a host to copy all the puppet & RHN files it needs, bring it down for a rebuild, then run another script to restore all the saved Puppet and RHN files so that a host owner doesn't need to have any admin access to RHN Satellite or the Puppet Master.
Responses
I don't have a definitive response - but... have you tried tar'ing up /etc/sysconfig/rhn and then laying that down on the new host? Also - if you are using SElinux, be sure to reapply the context to the files (depending on how you put them back on the system).
I would try the following
cd /etc/sysconfig
tar -xvf rhn.tar
restorecon -RF /etc/sysconfig/rhn
service rhnsd restart
rhn-profile-sync
yum clean all
yum repolist
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
