Hi all,
I’ve just started my Foreman/Katello journey and was wondering about a few aspects.
I already have many CentOS 7 servers and desktops on my network, and rather than rebuild them all, I’m looking at slowly adding them into it.
In the mean time, my pulp repositories are full of RPMs, so I was wondering if it’s possible to use the foreman squid proxy rather than downloading packages again across each machine.
On the server I commented out the deny all line in the squid.conf
# http_access fragment for all
#http_access deny all
On the guest, I modified /etc/yum.conf and added in the line:
proxy=http://foreman.fqdn:3128
Then, running “yum update” I get many 404 and 405 errors
https://mirrors.ukfast.co.uk/sites/remi/enterprise/7/safe/x86_64/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 405"
Trying other mirror.
https://mirror.pit.teraswitch.com/remi/enterprise/7/safe/x86_64/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 405"
Trying other mirror.
https://mirrors.tuna.tsinghua.edu.cn/remi/enterprise/7/safe/x86_64/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 405"
Trying other mirror.
https://mirror.sjc02.svwh.net/remi/enterprise/7/safe/x86_64/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 405"
Trying other mirror.
http://ftp.riken.jp/Linux/remi/enterprise/7/safe/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://remi.conetix.com.au/enterprise/7/safe/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
And on the server:
1589968264.485 0 192.168.0.57 TAG_NONE/405 3821 CONNECT error:method-not-allowed - HIER_NONE/- text/html
1589968264.488 0 192.168.0.57 TAG_NONE/405 3821 CONNECT error:method-not-allowed - HIER_NONE/- text/html
1589968264.491 0 192.168.0.57 TAG_NONE/405 3821 CONNECT error:method-not-allowed - HIER_NONE/- text/html
1589968264.494 0 192.168.0.57 TAG_NONE/405 3821 CONNECT error:method-not-allowed - HIER_NONE/- text/html
1589968264.497 0 192.168.0.57 TAG_NONE/405 3821 CONNECT error:method-not-allowed - HIER_NONE/- text/html
1589968264.504 4 192.168.0.57 TCP_MISS/404 336 GET http://ftp.riken.jp/Linux/remi/enterprise/7/safe/x86_64/repodata/repomd.xml - FIRSTUP_PARENT/127.0.0.1 text/html
1589968264.512 5 192.168.0.57 TCP_MISS/404 336 GET http://remi.conetix.com.au/enterprise/7/safe/x86_64/repodata/repomd.xml - FIRSTUP_PARENT/127.0.0.1 text/html
1589968264.515 0 192.168.0.57 TAG_NONE/405 3821 CONNECT error:method-not-allowed - HIER_NONE/- text/html
Any pointers? Is this even possible?
Cheers,
Sven