[Spacewalk-list] Registering Offline servers to Spacewalk
Jason Calafiore
jason.calafiore at gmail.com
Wed Jun 10 21:46:45 UTC 2015
Hi All,
I am trying to figure out a an easy to register servers that are already
created and offline without have to reach out to the internet to get the
necessary packages.
The only way I could do this was to do the following below by creating a
yum repo with the necessary packages and then on a client server configure
a .repo file that get the necessary packages.
Is there any easier way to do this? I would think spacewalk would have an
easy way to register clients especially offline servers. I had asked this
before and someone suggested a scripts on github, but couldn't figure it
out.
Thanks,
Jason
Create Local Repo on the spacewalk Server
mkdir /var/www/html/pub/spacewalk-client
cd /var/www/html/pub/spacewalk-client
repotrack -a x86_64 -p /var/www/html/pub/spacewalk-client rhn-client-tools
rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin
rm *i686* -f
wget
http://yum.spacewalkproject.org/2.3-client/RHEL/7/x86_64/spacewalk-client-repo-2.3-2.el7.noarch.rpm
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
creapterepo /var/www/html/pub/spacewalk-client
Register Server to Spacewalk
vi/etc/yum.repos.d/spacewalk-local.repo
[spacewalk-local-install-repo]
name=Spacewalk Client Install
baseurl=http://spacewalk-server.com/pub/spacewalk-client
gpgcheck=0
gpgkey=
enabled=1
Disable other repos in /yum.repos.d
yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto
yum-rhn-plugin
# rpm -Uvh
http://spacewalk-server.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
<http://ghslspacewalk.ds.src.bah.com/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm>
rhnreg_ks --serverUrl=https://spacewalk-server.com/XMLRPC
--sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
--activationkey=1-centos-server-7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20150610/345d4fb2/attachment.htm>
More information about the Spacewalk-list
mailing list