DescriptionFetch apt proxy config via host apt-config
Since we're passing custom userdata to the ubuntu-cloud lxc template, it ends
up not setting the apt_mirror to the MIRROR setting. Read apt proxy
configuration from the container's host instead via the apt-config command and
inject that into the container via apt_proxy cloud init setting for the http
proxy plus a runcmd that writes /etc/apt/apt.conf.d/99proxy-extra with the
same config as the host for the remaing settings not supported explicitly by
cloud-init at the moment.
https://code.launchpad.net/~sidnei/juju-core/lxc-mirror/+merge/177737
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Fetch MIRROR setting from /etc/default/lxc #Patch Set 3 : Fetch apt proxy config via host apt-config #
Total comments: 2
Patch Set 4 : Fetch apt proxy config via host apt-config #Patch Set 5 : Fetch apt proxy config via host apt-config #Patch Set 6 : Fetch apt proxy config via host apt-config #
Total comments: 11
Patch Set 7 : Fetch apt proxy config via host apt-config #
Total comments: 4
Patch Set 8 : Fetch apt proxy config via host apt-config #
MessagesTotal messages: 10
|