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*"

CentOS7 client installation requires two packages available online only:

 wget -c
 wget -c

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:


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