Merge lp://qastaging/~hazmat/pyjuju/local-provider-config into lp://qastaging/pyjuju
Proposed by
Kapil Thangavelu
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Gustavo Niemeyer | ||||
Approved revision: | 389 | ||||
Merged at revision: | 363 | ||||
Proposed branch: | lp://qastaging/~hazmat/pyjuju/local-provider-config | ||||
Merge into: | lp://qastaging/pyjuju | ||||
Prerequisite: | lp://qastaging/~hazmat/pyjuju/provider-determines-placement | ||||
Diff against target: | 0 lines | ||||
To merge this branch: | bzr merge lp://qastaging/~hazmat/pyjuju/local-provider-config | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gustavo Niemeyer | Approve | ||
Review via email: mp+76330@code.qastaging.launchpad.net |
Description of the change
Enable configuring/using local provider via environment
Local/lxc provider should be useable through environments.yaml configuration. At
a miniumum this means
laptop:
provider: lxc
admin-secret: magic
data-dir: /tmp/local-dev
To post a comment you must log in.
LGTM, with a few details:
[1]
> provider: lxc
It feels like a bad idea to be naming the local provider as "lxc", in hindsight. It conflates
two different concepts: deployment of units in lxc, that can happen in any provider type,
with the use of the local machine for development purposes, which is what this setting is
really about.
Can we please rename the provider itself to "local" on a follow up branch once all
the in-progress work is merged (to avoid having to deal with conflicts)?
[2]
27 +ensemble: environments
28 +
All yaml headers were dropped. Please kill this before merging.
[3]
66 def __init__(self): dns_name = self.dns_name = "localhost"
67 - self.instance_id = "local"
68 - self.private_
69 + pass
I'd prefer to use the constructor of the base class instead, as
this will hook up both implementations and we'll get to know
about divergences:
super(LocalMachine, self)._ _init__ ("local" , private_ dns_name= "localhost" )