Merge lp:~sidnei/juju-core/lxc-mirror into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Sidnei da Silva |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1603 |
Proposed branch: | lp:~sidnei/juju-core/lxc-mirror |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
349 lines (+177/-19) 6 files modified
cloudinit/cloudinit_test.go (+7/-0) cloudinit/options.go (+6/-0) container/lxc/lxc.go (+30/-0) container/lxc/lxc_test.go (+29/-2) utils/apt.go (+34/-8) utils/apt_test.go (+71/-9) |
To merge this branch: | bzr merge lp:~sidnei/juju-core/lxc-mirror |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser (community) | Approve | ||
Review via email: mp+177737@code.launchpad.net |
Commit message
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/
same config as the host for the remaing settings not supported explicitly by
cloud-init at the moment.
https:/
R=dimitern, rogpeppe, smoser
Description of the change
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/
same config as the host for the remaing settings not supported explicitly by
cloud-init at the moment.
Reviewers: mp+177737_ code.launchpad. net,
Message:
Please take a look.
Description:
Fetch MIRROR setting from /etc/default/lxc
Since we're passing custom userdata to the ubuntu-cloud lxc template, it
ends
up not setting the apt_mirror to the MIRROR setting. One could argue
that the
template should be fixed instead to always set the apt_mirror if it's
unset in
the custom userdata, but that's a separate discussion.
https:/ /code.launchpad .net/~sidnei/ juju-core/ lxc-mirror/ +merge/ 177737
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/12143043/
Affected files: cloudinit_ test.go options. go lxc/lxc. go lxc/lxc_ test.go cloudinit/ cloudinit. go cloudinit/ cloudinit_ test.go
A [revision details]
M agent/agent.go
M cloudinit/
M cloudinit/
M container/
M container/
M environs/
M environs/
M utils/apt.go
M utils/apt_test.go