Merge lp:~thumper/juju-core/lxc-cloud-init into lp:~go-bot/juju-core/trunk
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1286 |
Proposed branch: | lp:~thumper/juju-core/lxc-cloud-init |
Merge into: | lp:~go-bot/juju-core/trunk |
Prerequisite: | lp:~thumper/juju-core/machine-id-from-tag |
Diff against target: |
86 lines (+51/-0) 2 files modified
environs/cloudinit/cloudinit.go (+9/-0) environs/cloudinit/cloudinit_test.go (+42/-0) |
To merge this branch: | bzr merge lp:~thumper/juju-core/lxc-cloud-init |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+169328@code.launchpad.net |
Commit message
Add lxc to our cloud-init packages
However don't add lxc if the machine itself is an
lxc container as the install fails on precise causing
the lxc container to fail to start.
Description of the change
Add lxc to our cloud-init packages
However don't add lxc if the machine itself is an
lxc container as the install fails on precise causing
the lxc container to fail to start.
To post a comment you must log in.
Reviewers: mp+169328_ code.launchpad. net,
Message:
Please take a look.
Description:
Add lxc to our cloud-init packages
However don't add lxc if the machine itself is an
lxc container as the install fails on precise causing
the lxc container to fail to start.
https:/ /code.launchpad .net/~thumper/ juju-core/ lxc-cloud- init/+merge/ 169328
Requires: /code.launchpad .net/~thumper/ juju-core/ machine- id-from- tag/+merge/ 169327
https:/
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/10235047/
Affected files: cloudinit/ cloudinit. go
A [revision details]
M environs/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: environs/ cloudinit/ cloudinit. go cloudinit/ cloudinit. go' cloudinit/ cloudinit. go 2013-06-04 21:43:25 +0000 cloudinit/ cloudinit. go 2013-06-14 02:32:16 +0000
=== modified file 'environs/
--- environs/
+++ environs/
@@ -74,6 +74,10 @@
// MachineId identifies the new machine.
MachineId string
+ // MachineContaine rType specifies the type of container that the machine rType string SSHAddAuthorize dKeys) orizedKeys( cfg.AuthorizedK eys) ("git") ainerType != "lxc" {
+ // is. If the machine is not a container, then the type is "".
+ MachineContaine
+
// AuthorizedKeys specifies the keys that are allowed to
// connect to the machine (see cloudinit.
// If no keys are supplied, there can be no ssh access to the node.
@@ -115,6 +119,11 @@
}
c.AddSSHAuth
c.AddPackage
+ // Perfectly reasonable to install lxc on environment instances and kvm
+ // containers.
+ if cfg.MachineCont
+ c.AddPackage("lxc")
+ }
addScripts(c,
"set -xe", // ensure we run all the scripts or abort.