[Spacewalk-list] Installing Spacewalk Client Tools without internet

Sebastian Meyer meyer at b1-systems.de
Wed Aug 12 17:27:04 UTC 2015


Hi,

just a few things I'd like to add:

On 11.08.2015 16:54, Bosch, Fabian (BITBW) wrote:
> Hello,
> 
> I went through similar circumstances. I can't give you a step-by-step-guide but a hint of things I did to get the client-tools to my 'offline' Clients.
> 
> #1 you have to keep the packages separate for each distribution/version just to avoid yum messing up.
>             So create Distro-folders in your Apache-Web folder /var/www/html/

If you do that under your pub directory, you won't have to create an
extra vhost. e.g.:

mkdir -p /var/www/html/pub/repos/EL/6Server/x86_64/

> #2 write a script to download the client tools from the spacewalkproject.  You can use e.g. 'wget' to get the folder(s) content. execute this script on your spacewalk-server

#3 cd /var/www/html/pub/repos/EL6/x86_64/ && createrepo .

> #4 add a http(s) Repo to your Client /yum/repos.d/ and link it to the URL of your added folders/VirtualHosts (you don't need to write a whole new file. Copy an existing file and manipulate name and URL)

URL would be https://<fqdn>/pub/repos/EL/$releasever/$arch/

HTH,

Sebastian

> 
> 
> There you go,
> 
> Regards,
> 
> Fabian Bosch
> 
> Referat 34 - Open Source
> Tel: 94476, Raum: KRA 1.68
> 
> Von: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] Im Auftrag von Frank, Mark (MA)
> Gesendet: Dienstag, 11. August 2015 16:38
> An: spacewalk-list at redhat.com
> Betreff: [Spacewalk-list] Installing Spacewalk Client Tools without internet access
> 
> I am in sort of a catch-22 in regards to our Spacewalk clients.  We setup a Spacewalk server in order to deploy OS updates to CentOS clients specifically because the clients don't have internet access by default.  However, we can't register our clients to the new Spacewalk server because they require the Spacewalk Client Tools to be installed first, which in turn requires internet access.
> 
> This is the step that I'm currently unable to do on my clients:
> # rpm -Uvh http://yum.spacewalkproject.org/2.3-client/RHEL/6/x86_64/spacewalk-client-repo-2.3-2.el6.noarch.rpm
> 
> ...which is required in order to do this:
> # yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin
> 
> My thought was that I'd like to setup an internal repo of http://yum.spacewalkproject.org/ or better yet just http://yum.spacewalkproject.org/latest-client/RHEL/ (all of our clients are CentOS only) on our spacewalk server and then create/modify the repo file on the clients to point to the internal repo.  I have Googled my heart out in regards to reposync/createrepo, but I haven't been able to sort it out yet.
> 
> I'd like some guidance in terms of (1) creating and syncing the repo on my spacewalk server and (2) how to create the repo file on the clients to be able to do the "yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin" and have it be smart enough to grab the files from the right RHEL version and arch.
> 
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
> 

-- 
Sebastian Meyer
Linux Consultant & Trainer
Tel.: +49-172-2057471
Mail: meyer at b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20150812/d6071e2f/attachment.sig>


More information about the Spacewalk-list mailing list