~gz/juju-core/gosshnew_1312940

Viewing all changes in revision 2666.

  • Committer: Tarmac
  • Author(s): Andrew Wilkins
  • Date: 2014-04-23 07:51:22 UTC
  • mfrom: (2580.1.11 addmachine-placement)
  • Revision ID: tarmac-20140423075122-i59ghmkjmgzjrfat
[r=axwalk],[bug=1237709] Introduce instance.Placement

This change introduces a new Placement
structure in the instance package that
encapsulates machine-id, container, and
(new) environment-specific placement
directives.

The add-machine subcommand is modified
to pass this new Placement structure
through the AddMachine client API, which
calls a new state method AddMachineWithPlacement.

Machine-id and container placement do the
same thing as before, while new environment-
specific placement structures are stored in
state. A new state policy is added to allow
an Environ to validate placement.

The provisioner API and worker are updated
to pass Placement through to StartInstance.

https://codereview.appspot.com/85040046/

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: