[Spacewalk-list] Installing Spacewalk Client Tools without internet

Frank, Mark (MA) mafrank at dow.com
Wed Aug 12 17:46:11 UTC 2015


Thanks for the advice so far.  I was able to use wget to download the latest-client folder with all of the various distribution/version/arch with this command:

# wget -mk --no-parent http://yum.spacewalkproject.org/latest-client/

...and I am using /var/www/html/pub to host it in.

So I'm definitely making progress.  Now I just need to create the repo and add the new repo to my clients via /etc/yum.repos.d/ and I should be all set.

Thanks all!

Mark Frank 


-----Original Message-----
From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Sebastian Meyer
Sent: Wednesday, August 12, 2015 1:27 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Installing Spacewalk Client Tools without internet

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





More information about the Spacewalk-list mailing list