I do not think that juju is the correct place to "support an apt proxy".
Just as cloud-init selects a mirror correctly, JuJu should let cloud-init do apt proxy configuration (if applicable).
The most generic solution for this is to allow users to provide user-data parts to cloud-init.
Then, to support apt proxy selection, the user (with no specific juju support) could add a boothook like:
#!/bin/sh
echo 'Acquire { HTTP { Proxy "http://my-local-proxy:3128/"; }; };' > /etc/apt/apt.conf.d/local-proxy
I also just opened cloud-init bug 897688, which will make specification of apt_proxy supported via cloud-config.
I do not think that juju is the correct place to "support an apt proxy".
Just as cloud-init selects a mirror correctly, JuJu should let cloud-init do apt proxy configuration (if applicable).
The most generic solution for this is to allow users to provide user-data parts to cloud-init.
Then, to support apt proxy selection, the user (with no specific juju support) could add a boothook like: my-local- proxy:3128/"; }; };' > /etc/apt/ apt.conf. d/local- proxy
#!/bin/sh
echo 'Acquire { HTTP { Proxy "http://
I also just opened cloud-init bug 897688, which will make specification of apt_proxy supported via cloud-config.