~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to state/api/params/params.go

[r=wallyworld] Add container support to force-machine

The deploy --force-machine option now supports containers,
either deploying to existing containers or creating new
ones on nominated machines.

Example syntax:

 juju deploy mysql --force-machine 23
 juju deploy mysql --force-machine 24/lxc/3
 juju deploy mysql --force-machine lxc:25

The last example creates a new lxc container on
machine 25.

The add-machine syntax has been tweaked to remove the
leading "/" from the container arg.

https://codereview.appspot.com/10777044/

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
// ServiceDeploy holds the parameters for making the ServiceDeploy call.
42
42
type ServiceDeploy struct {
43
 
        ServiceName    string
44
 
        CharmUrl       string
45
 
        NumUnits       int
46
 
        Config         map[string]string
47
 
        ConfigYAML     string // Takes precedence over config if both are present.
48
 
        Constraints    constraints.Value
49
 
        ForceMachineId string
 
43
        ServiceName      string
 
44
        CharmUrl         string
 
45
        NumUnits         int
 
46
        Config           map[string]string
 
47
        ConfigYAML       string // Takes precedence over config if both are present.
 
48
        Constraints      constraints.Value
 
49
        ForceMachineSpec string
50
50
}
51
51
 
52
52
// ServiceSetCharm sets the charm for a given service.