<div dir="ltr">Take a look at this. I used this script to create public http repos on my Spacewalk server under /var/www/html/pub. It links directly back to the packages already in /var/satellite so there's not much disk space required<br><br><a href="https://github.com/angrox/spacewalk-api-scripts/tree/master/spacewalk-create-yumrepo">https://github.com/angrox/spacewalk-api-scripts/tree/master/spacewalk-create-yumrepo</a><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 7, 2020 at 7:48 AM Brian Long <<a href="mailto:briandlong@gmail.com">briandlong@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'll give you an example from a RHEL 6.9 spacewalk kickstart profile.<br>
The "url" line provides the distribution tree and that distribution<br>
has to be used at the end of each repo line to access the Spacewalk<br>
yum repos directly.<br>
<br>
url --url <a href="http://spacewalk-server.domain.com/ks/dist/org/1/RHEL_6.9_x86_64_ISO" rel="noreferrer" target="_blank">http://spacewalk-server.domain.com/ks/dist/org/1/RHEL_6.9_x86_64_ISO</a><br>
repo --name=spacewalk27-client-rhel6-x86_64<br>
--baseurl=<a href="http://spacewalk-server.domain.com/ks/dist/child/spacewalk27-client-rhel6-x86_64/RHEL_6.9_x86_64_ISO" rel="noreferrer" target="_blank">http://spacewalk-server.domain.com/ks/dist/child/spacewalk27-client-rhel6-x86_64/RHEL_6.9_x86_64_ISO</a><br>
repo --name=rhel6-x86_64-extras<br>
--baseurl=<a href="http://spacewalk-server.domain.com/ks/dist/child/rhel6-x86_64-extras/RHEL_6.9_x86_64_ISO" rel="noreferrer" target="_blank">http://spacewalk-server.domain.com/ks/dist/child/rhel6-x86_64-extras/RHEL_6.9_x86_64_ISO</a><br>
repo --name=epel6-rhel6-x86_64<br>
--baseurl=<a href="http://spacewalk-server.domain.com/ks/dist/child/epel6-rhel6-x86_64/RHEL_6.9_x86_64_ISO" rel="noreferrer" target="_blank">http://spacewalk-server.domain.com/ks/dist/child/epel6-rhel6-x86_64/RHEL_6.9_x86_64_ISO</a><br>
repo --name=rhel6-x86_64-updates<br>
--baseurl=<a href="http://spacewalk-server.domain.com/ks/dist/child/rhel6-x86_64-updates/RHEL_6.9_x86_64_ISO" rel="noreferrer" target="_blank">http://spacewalk-server.domain.com/ks/dist/child/rhel6-x86_64-updates/RHEL_6.9_x86_64_ISO</a><br>
<br>
I could easily have a yum.conf.d file specifying<br>
baseurl=<a href="http://spacewalk-server.domain.com/ks/dist/child/spacewalk27-client-rhel6-x86_64/RHEL_6.9_x86_64_ISO" rel="noreferrer" target="_blank">http://spacewalk-server.domain.com/ks/dist/child/spacewalk27-client-rhel6-x86_64/RHEL_6.9_x86_64_ISO</a><br>
to directly access the Spacewalk 2.7 client RPMs without having<br>
Spacewalk already installed.<br>
<br>
Hope this helps.<br>
<br>
/Brian/<br>
<br>
On Thu, Feb 6, 2020 at 2:24 PM Laurence Rosen <<a href="mailto:lrosen@interactions.com" target="_blank">lrosen@interactions.com</a>> wrote:<br>
><br>
> Not even sure how to search (google) for this subject.<br>
><br>
> I want to setup a locally available yum repo via http I can use to initially install the spacewalk client without internet access.<br>
> I currently have mirrored some repos via mrepo and serve those dir out to new client systems for easy client prms installation.<br>
><br>
> The problem with this is it is duplicating the internal spacewalk repos I've setup wasting mus storage.<br>
><br>
> Is there a way to utilize the all the cached data in spacewalk and serve out as yum repos rather than having another copy of all the rpms in /var/ww/mrepo?<br>
><br>
> I am probably missing something stupid simple.  Also please direct me to any further documentation that describes how the spacewalk repo system works in detail.  I am constantly feeling<br>
><br>
> --<br>
><br>
> Larry R<br>
><br>
><br>
> *******************************************************************************<br>
><br>
> This e-mail and any of its attachments may contain Interactions LLC proprietary information, which is privileged, confidential, or subject to copyright belonging to the Interactions LLC. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. Thank You.<br>
><br>
> *******************************************************************************<br>
><br>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> <a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com" target="_blank">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
<br>
</blockquote></div>