|
|
Update add machine command to create containers
The add machine command accepts additional command line
arguments to specify a container to create. The container
can be on a new machine or an existing instance. Container
constraints are also supported eg create a container with
2G memory. The state is updated with the new machine document
but the machine watcher ignores the machine since there's no
code to provision containers yet.
examples:
juju add-machine /lxc
juju add-machine --constraints mem=4G /lxc
juju add-machine 1/lxc
https://code.launchpad.net/~wallyworld/juju-core/add-machine-container/+merge/167195
(do not edit description out of merge proposal)
Total comments: 12
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+608 lines, -61 lines) |
Patch |
 |
A |
[revision details]
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/addmachine.go
|
View
|
1
2
|
4 chunks |
+41 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/addmachine_test.go
|
View
|
1
2
|
2 chunks |
+41 lines, -0 lines |
0 comments
|
Download
|
 |
A |
state/container.go
|
View
|
1
2
|
1 chunk |
+113 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/machine.go
|
View
|
1
2
|
6 chunks |
+58 lines, -12 lines |
0 comments
|
Download
|
 |
M |
state/machine_test.go
|
View
|
1
2
|
3 chunks |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
M |
state/open.go
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
state/state.go
|
View
|
1
2
|
5 chunks |
+103 lines, -25 lines |
0 comments
|
Download
|
 |
M |
state/state_test.go
|
View
|
1
2
|
7 chunks |
+164 lines, -7 lines |
0 comments
|
Download
|
 |
M |
state/unit.go
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
state/watcher.go
|
View
|
1
2
|
2 chunks |
+25 lines, -9 lines |
0 comments
|
Download
|
 |
M |
worker/firewaller/firewaller.go
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
worker/provisioner/provisioner.go
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
worker/provisioner/provisioner_test.go
|
View
|
1
2
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
Total messages: 12
|