Comment 8 for bug 1686353

Revision history for this message
Rafael Folco (rafaelfolco) wrote :

Please let me know if I am missing anything to reproduce the issue.

- proxy all web traffic
set http_proxy and https_proxy with auth
- proxy yum
set proxy user/password setting in yum.conf

Important:
- pip, wget, git, etc use https so you have to set env https_proxy with auth for all these tools to work in quickstart
- set the proxy config on deployer/virthost nodes (I used the same host deployer==virthost 127.0.0.2)

quickstart.sh works for me with the following config:

# install squid

[squid]
yum -y install squid
systemctl start squid
systemctl enable squid
systemctl status squid

# set auth proxy
yum -y install httpd-tools
touch /etc/squid/passwd && chown squid /etc/squid/passwd
htpasswd /etc/squid/passwd pxuser
/etc/squid/squid.conf

[/etc/squid/squid.conf]
#add auth settings
    auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/passwd
    auth_param basic children 5
    auth_param basic realm Squid Basic Authentication
    auth_param basic credentialsttl 2 hours
    acl auth_users proxy_auth REQUIRED
    http_access allow auth_users

systemctl restart squid

# all web traffic to auth proxy
export http_proxy=http://pxuser:pxpassword@127.0.0.2:3128
export https_proxy=http://pxuser:pxpassword@127.0.0.2:3128

# configure yum and clear cache
[/etc/yum.conf]
proxy=http://127.0.0.2:3128
proxy_username=pxuser
proxy_password=pxpassword

yum clean all

# run quickstart
bash quickstart.sh --tags all --clean 127.0.0.2