Add ability to set proxy for environment
Bug #1702332 reported by
Julen Larrucea
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
On Ubuntu 17.04
MaaS 2.2.0~rc1+
Setting up a custom http-proxy is used for '/etc/apt.
Unfortunately, the commissioning of a plain and default Ubuntu node also involves some fancy calls to
i.e. 'https:/
These calls will not likely success, because, as the $http_proxy variable on the controller already knows, ... we are behind a proxy.
Why not to include the http_proxy as a global environment variable on the target nodes?
description: | updated |
summary: |
- http_proxy only for apt? + Add ability to set proxy for environment |
Changed in maas: | |
milestone: | 2.3.0 → 2.3.x |
To post a comment you must log in.
Ideally this should be handled directly by MaaS, or disable the unrelated services (such as snapd).
I worked around the problem with a custom script.
cat > 0-maas-http_proxy << EOF
#! /bin/bash
echo 'http_proxy=http:// myproxy. example. com:8080' >> /etc/environment myproxy. example. com:8080' >> /etc/environment
echo 'https_proxy=http://
EOF
... and upload it as graphic interface under Settings > "Commissioning scripts".
If you also need to deal with the calls to ntp.ubuntu.com (bug #1702329), append something like this to the script above.
sed -i 's/^#NTP= /NTP=ntp. example. com/' /etc/systemd/ timesyncd. conf
service systemd-timesyncd restart