SUSE Manager/CentOS Bootstrap repo

From MicroFocusInternationalWiki
Revision as of 14:17, 8 March 2018 by Jhodge (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SUSE Manager Main Page

Create the CentOS Bootstrap Repository

For CentOS 7

Add the CentOS7 spacewalk client as a bootstrap repository to your SUSE Manager server:

 mkdir -p /srv/www/htdocs/pub/repositories/centos7 
 cd  /srv/www/htdocs/pub/repositories/centos7 

Get the public spacewalk client files:

 wget -r -nH --cut-dirs=5 --no-parent --reject="index.html*" http://yum.spacewalkproject.org/2.6-client/RHEL/7/x86_64/

CentOS7 client installation requires two packages available online only:

 wget -c http://mirror.centos.org/centos-7/7/os/x86_64/Packages/python-gudev-147.2-7.el7.x86_64.rpm
 wget -c http://mirror.centos.org/centos-7/7/os/x86_64/Packages/python-hwdata-1.7.3-4.el7.noarch.rpm


Create the repodata for this bootstrap repository:

 createrepo .

Create the centos7-client.repo file on your server in /srv/www/htdocs/pub/repositories/centos7 with the following content:

 [centos7-client]
 name=centos7-client
 baseurl=http://<servername>/pub/repositories/centos7
 enabled=1 
 gpgcheck=0

Make sure these lines get added to your bootstrap script so it is included at time of registration/bootstrap ahead of the 'yum clean all' line:

 # Download the .repo file for the client so the prerequisites are in place for registration
 curl -Sks http://<servername>/pub/repositories/centos7/centos7-client.repo >> /etc/yum.repos.d/centos7-client.repo