Or you could just use the cgi to figure it out like dell does.

mirrorlist=http://linux.dell.com/repo/hardware/OMSA_6.2/mirrors.cgi?osname=el$releasever&basearch=$basearch&sys_ven_id=$sys_ven_id&sys_dev_id=$sys_dev_id&dellsysidpluginver=$dellsysidpluginver

> -----Original Message-----
> From: [email protected] [mailto:linux-poweredge-
> [email protected]] On Behalf Of Jim Goddard
> Sent: Wednesday, December 01, 2010 12:27 PM
> To: Frank Wang
> Cc: [email protected]
> Subject: RE: Local mirror of OMSA repository
> 
> Hi Frank, and everyone who chimed in to help me out.
> 
> I was hoping to avoid having model-specific .repo files for our
> servers, but I really like the idea of having the local rsync of the
> dell tools, so I am going to test a fairly simple addition to our
> kickstart that pulls the model info and gets the repo file correct.
> 
> Thanks again for all the help,
> 
> Jim
> -----Original Message-----
> From: Frank Wang [mailto:[email protected]]
> Sent: Tuesday, November 30, 2010 5:36 PM
> To: Jim Goddard
> Cc: [email protected]
> Subject: Re: Local mirror of OMSA repository
> 
> > Hello,
> >
> > I am stumped on how to get the local mirror I made of the Dell
> > repository to work.
> >
> > I have the portions of the repository mirrored that correspond to our
> > hardware (not the full tree).
> >
> > Is there some guidance to creating the client's repo file so that my
> > machines grab from my mirror, instead of over the internet?
> >
> > I think I am missing something simple here.
> >
> > Thanks a lot,
> >
> Here's the solution working for me,
> 1. Mirror dell repo according to your hardware and OS (2950, R410 and
> R710 in my case for hardware, and RHEL only for OS) rsync -avHz --
> delete-after --delete-excluded  --include pe2950/ --include per410/ --
> include per710 --exclude "/hardware/OMSA_5.*/" --exclude
> "/hardware/OMSA_6.0.*/" --exclude "/hardware/OMSA_6.1/" --exclude
> /hardware/beta/ --exclude "suse1*/" --exclude "rh40*/" --exclude
> "pe[[:digit:]]*/" --exclude "pe[rmt][[:digit:]]*/"
> rsync://linux.dell.com/repo/hardware /path/to/local/mirror
>     The local mirror space is 7.3G here.
> 
> 2. Create yum repo config
> [dell-omsa-indep]
> name=Dell OMSA repository - Hardware independent type=rpm-md
> baseurl=http://localmirror/dell/hardware/latest/platform_independent/rh
> 50_64
> gpgcheck=1
> gpgkey=http://localmirror/dell/hardware/latest/RPM-GPG-KEY-dell
>     http://localmirror/dell/hardware/latest/RPM-GPG-KEY-libsmbios
> enabled=1
> failover=priority
> bootstrapurl=http://localmirror/dell/hardware/latest/bootstrap.cgi
> 
> [dell-omsa-specific]
> name=Dell OMSA repository - Hardware specific type=rpm-md
> baseurl=http://localmirror/dell/hardware/latest/per710/rh50_64
> gpgcheck=1
> gpgkey=http://localmirror/dell/hardware/latest/RPM-GPG-KEY-dell
>     http://localmirror/dell/hardware/latest/RPM-GPG-KEY-libsmbios
> enabled=1
> failover=priority
> bootstrapurl=http://localmirror/dell/hardware/latest/bootstrap.cgi
> 
>     Note, the above is for a R710 server with Centos x86_64 OS, thus
> the
> /rh50_64 in the baseurl of dell-omsa-indep, and /per710/rh50_64 in the
> baseurl of dell-omsa-specific. You should modify yours according to
> your server's specification and OS.
> 
> 
> _______________________________________________
> Linux-PowerEdge mailing list
> [email protected]
> https://lists.us.dell.com/mailman/listinfo/linux-poweredge
> Please read the FAQ at http://lists.us.dell.com/faq

_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq

Reply via email to