[2.5] MAAS doesn't set yum proxy for CentOS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Lee Trager |
Bug Description
During installation, MAAS doesn't set the maas_proxy to the centos configuration.
MAAS should support setting this, even thought cloud-init doesn't support it today.
A late_command could automatically be added by adding something like this:
"echo proxy=<proxy> >> /etc/yum.conf"
Another thing that could be done:
if [ ! -z "${http_proxy-}" ]; then
if [ "$OS_NAME" = "centos" ]; then
debug 1 "configuring proxy ${http_proxy}"
inside "$name" sh -c "echo proxy=$http_proxy >> /etc/yum.conf"
inside "$name" sed -i s/enabled=
else
debug 1 "do not know how to configure proxy on $OS_NAME"
fi
fi
Related branches
- Newell Jensen (community): Approve
- MAAS Lander: Needs Fixing
- Andres Rodriguez (community): Needs Fixing
-
Diff: 166 lines (+33/-12)5 files modifiedsrc/maasserver/forms/settings.py (+5/-5)
src/maasserver/preseed.py (+14/-2)
src/maasserver/static/partials/intro.html (+1/-1)
src/maasserver/static/partials/proxy-settings.html (+1/-1)
src/maasserver/tests/test_preseed.py (+12/-3)
Changed in maas: | |
milestone: | none → 2.5.0rc1 |
importance: | Undecided → High |
status: | New → Triaged |
assignee: | nobody → Lee Trager (ltrager) |
description: | updated |
tags: | added: track |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |