RE: Using a local mirror? [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



 

> -----Original Message-----
> From: centos-bounces@xxxxxxxxxx 
> [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of Jason Pyeron
> Sent: Tuesday, November 27, 2007 21:49
> To: 'CentOS mailing list'
> Subject: RE:  Using a local mirror?
> 
> 
> > -----Original Message-----
> > From: centos-bounces@xxxxxxxxxx 
> > [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of Max Hetrick
> > Sent: Tuesday, November 27, 2007 21:18
> > To: CentOS mailing list
> > Subject: Re:  Using a local mirror?
> > 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Jason Pyeron wrote:
> > > We have a rsync'ed copy of the centos distro.
> > > We want to point our local machines at that, what is our 
> next step?
> > 
> > Hi, Jason.
> > 
> > cd /etc/yum.repos.d
> > 
> > I'd make a backup of the original CentOS-Base.repo:
> > 
> > cp CentOS-Base.repo CentOS.Base.repo.org
> > 
> > Open CentOS-Base.repo in a text editor, vim, emacs, whatever.
> > 
> > Comment out all the mirrorlist's.
> > 
> > # mirrorlist=http://mirrorlist.centos.org/blah-blah-blah
> > 
> > Make sure all the baseurl's reflects your internal repo and are not
> > commented out.
> > 
> > baseurl=http//your_internal_repo/centos/$releasever/os/$basearch/
> 
> This will be my second try after trying to find a less 
> invasive method like
> proxying.
> 
> Right now when a machine pulls up mirrorlist.centos.org it 
> will point to an
> internal system, whose cgi behaves as such (expecting a scale 
> issue here,
> vlan based load...).
> 

Hmmm, needed to proxy the mirror.centos.org too, since up2date does not use
the yum.cond.d stuff .


So to proxy

Capture all mirrorlist.centos.org and mirror.centos.org and redirect to your
internal versions respectively.

Our local dns is "poisoned" to point to our internal servers. From there its
all cake.

[root@host67 mirrors]# cat /var/www/html/index.cgi
#!/usr/bin/perl
use strict;
use CGI;


my $cgi = new CGI;

my $release = $cgi->param('release');
my $arch    = $cgi->param('arch');
my $repo    = $cgi->param('repo');


print "Content-type: text/html\n\n";
print "http://192.168.1.67/centos/$release/$repo/$arch/\n";;


exit (0);
[root@host67 mirrors]#


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Sr. Consultant                    10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately.  Any other use of the email by you
is prohibited. 


> > 
> > You should be ok to use yum then, so long as your paths are 
> all good.
> > This is how I do it, anyways. Other comments or procedures 
> > are more than
> > welcome.
> > 
> > Regards,
> > Max
> > 
> > 
> > 
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.2.6 (GNU/Linux)
> > 
> > iD8DBQFHTM/hHoeeepPau2ERAijzAKCCVjFEcFaCs4c2/UlE3HTELPIAggCgt4dK
> > upBBCizZY6BRLMU4wBGSa1k=
> > =Jr+J
> > -----END PGP SIGNATURE-----
> > _______________________________________________
> > CentOS mailing list
> > CentOS@xxxxxxxxxx
> > http://lists.centos.org/mailman/listinfo/centos
> > 
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Sr. Consultant                    10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately.  Any other use of the email by you
is prohibited. 

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux