This was also an issue in our case - but there's a solution. In case of CentOS 7.1 and yum updates this is one way:
#cloud-config runcmd: - echo "proxy=http://proxy.example.com:8080" >> /etc/yum.conf - echo proxy_username=user123 >> /etc/yum.conf - echo proxy_password=pwd456 >> /etc/yum.conf - echo "http_proxy=http://user123:<email address hidden>:8080" > /etc/profile.d/proxy.sh && chmod 755 /etc/profile.d/proxy.sh - echo "https_proxy=http://user123:<email address hidden>:8080" >> /etc/profile.d/proxy.sh - echo "no_proxy=localhost,127.0.0.1,169.254.169.254,.sock,.example.com" >> /etc/profile.d/proxy.sh - yum update -y ...
This was also an issue in our case - but there's a solution.
In case of CentOS 7.1 and yum updates this is one way:
#cloud-config proxy.example. com:8080" >> /etc/yum.conf user123 >> /etc/yum.conf pwd456 >> /etc/yum.conf user123:<email address hidden>:8080" > /etc/profile. d/proxy. sh && chmod 755 /etc/profile. d/proxy. sh user123:<email address hidden>:8080" >> /etc/profile. d/proxy. sh localhost, 127.0.0. 1,169.254. 169.254, .sock,. example. com" >> /etc/profile. d/proxy. sh
runcmd:
- echo "proxy=http://
- echo proxy_username=
- echo proxy_password=
- echo "http_proxy=http://
- echo "https_proxy=http://
- echo "no_proxy=
- yum update -y
...