-
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/