[Spacewalk-list] Spacewalk 2.9 - How to Disable network proxy for specific repos
Michael Mraka
michael.mraka at redhat.com
Mon Sep 2 14:16:20 UTC 2019
Larry Clegg:
> Greetings Spacers,
>
> I’m running Spacewalk 2.9 on Centos 6.10 with all the latest patches.
>
> Is there a way to disable the network proxy for specific repos? I have two
> internal repos which should not be passed thru the proxy server. I’ve
> tried updating /etc/rhn/spacewalk-repo-sync/yum.conf with the entry shown
> below but it did not work. So far no luck in figuring it out. I can ping
> the swdepot.local server and I can wget from it.
>
> # cat /etc/rhn/spacewalk-repo-sync/yum.conf
> [main]
> proxy=http://proxy.local:3128
> [kyriba-misc-centos6]
> name=External - Kyriba-Misc for Centos 6
> baseurl=http://swdepot.local/SW/Packages/kyriba-misc
> proxy=_none_
> enabled=1
> gpgcheck = 0
>
> When I try a repo sync I get these messages:
>
> [root at us3-inf-lu-s01 scripts]# /usr/bin/python -u
> /usr/bin/spacewalk-repo-sync --channel kyriba-misc-centos6 --type yum
> 15:35:06 ======================================
> 15:35:06 | Channel: kyriba-misc-centos6
> 15:35:06 ======================================
> 15:35:06 Sync of channel started.
> 15:35:06
> 15:35:06 Processing repository with URL:
> http://swdepot.local/SW/Packages/kyriba-misc
> 15:35:06 ERROR: Cannot retrieve repository metadata (repomd.xml) for
> repository: External - Kyriba-Misc for Centos 6. Please verify its path and
> try again
> 15:35:06 Sync of channel completed in 0:00:00.
> 15:35:06 Total time: 0:00:00
Hello Larry,
Are you able to access repo from commandline on spacewalk?
E.g.
# curl -v http://swdepot.local/SW/Packages/kyriba-misc/repodata/repomd.xml
Regards,
--
Michael Mráka
System Management Engineering, Red Hat
More information about the Spacewalk-list
mailing list