~go-bot/juju-core/trunk

Viewing all changes in revision 1603.

  • Committer: Tarmac
  • Author(s): Sidnei da Silva
  • Date: 2013-08-05 17:57:23 UTC
  • mfrom: (1567.3.14 lxc-mirror)
  • Revision ID: tarmac-20130805175723-yz25i93ij1t1f4gd
[r=sidnei],[bug=1203816] Fetch 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://codereview.appspot.com/12143043/

R=dimitern, rogpeppe, smoser

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: