[ER2] Configure Master Server so YUM may access Repos via Proxy

Issue

Your ER2 Master Server is in a Corporate Environment which may only access external resources via a proxy
(e.g the Repos at mirror.centos.org & updates.groundlabs.com)

 

Resolution

Add your corporate proxy into YUM's configuration

 

To configure proxy settings for YUM

Edit the /etc/yum.conf file, 
add the proxy details into the [main] stanza

[main]
proxy=http://<Proxy-Server-IP-Address>:<Proxy-Port>
proxy_username=<Proxy-User-Name>
proxy_password=<Proxy-Password>

skip username & password if your proxy doesn't require one.

then check if it's working 
[root@er-master ~]# yum repolist

a bit more info

https://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html

http://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.