Merge lp:~hazmat/pyjuju/environment-settings into lp:~juju/pyjuju/docs
Proposed by
Kapil Thangavelu
Status: | Work in progress | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~hazmat/pyjuju/environment-settings | ||||
Merge into: | lp:~juju/pyjuju/docs | ||||
Diff against target: |
71 lines (+62/-0) 2 files modified
.bzrignore (+2/-0) source/drafts/environment-settings.rst (+60/-0) |
||||
To merge this branch: | bzr merge lp:~hazmat/pyjuju/environment-settings | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+98055@code.launchpad.net |
Description of the change
Environment settings explicitly set.
Change environment settings from a transparent sync to an explict set/get after
initialization.
To post a comment you must log in.
Unmerged revisions
- 11. By Kapil Thangavelu
-
add ignores
- 10. By Kapil Thangavelu
-
address review comments
- 9. By Kapil Thangavelu
-
address review comments
- 8. By Kapil Thangavelu
-
address review comments
- 7. By Kapil Thangavelu
-
minor tweaks
- 6. By Kapil Thangavelu
-
global setting draft
Reviewers: mp+98055_ code.launchpad. net,
Message:
Please take a look.
Description:
Environment settings explicitly set.
Change environment settings from a transparent sync to an explict
set/get after
initialization.
https:/ /code.launchpad .net/~hazmat/ juju/environmen t-settings/ +merge/ 98055
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/5849054/
Affected files: drafts/ environment- settings. rst
A [revision details]
A source/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision:
<email address hidden>
Index: source/ drafts/ environment- settings. rst drafts/ environment- settings. rst' drafts/ environment- settings. rst 1970-01-01 00:00:00 +0000 drafts/ environment- settings. rst 2012-03-17 05:51:10 +0000 ------- ------- environments. yaml to us-east- 1.ec2.archive. ubuntu. com.s3. amazonaws. com/ubuntu/ provider settings bit.ly ec2-instance- type=m1. large eu-west- 1
=== added file 'source/
--- source/
+++ source/
@@ -0,0 +1,56 @@
+Environment Settings
+------
+
+A Juju environment represents a group of services utilizing the
+machines of a provider. Juju's environment stores information
+regarding how to connect to a provider for the allocation of these
+machines.
+
+Juju lazily initializes this information in a post-bootstrap command
+to avoid passing provider credentials over unencrypted communciation
+channels (for example ec2 api's user-data).
+non bootstrap command.
+
+Previously Juju would sync the values in ~/.juju/
+the environment's settings node in zookeeper on every command. This
+approach was problematic with multiple users interacting with an
+environment, and the values themselves weren't used to change the
+existing runtime environment, but future usage of these settings.
+
+Subsequent to the initialization of the environment settings. Juju now
+exposes a separate juju set-env command to allow for changing
+environment settings at runtime, and will no longer transparently sync
+the environments.yaml file to the environment state
+
+An example of juju-set usage::
+
+ juju set-env apt-proxy
http://
+
+There are several types of environment settings, which are utilized in
+different contexts. The provider credential information, used by the
+provisioning agents is kept at::
+
+ /environment/
+
+Other information potentially of use to a larger group of agents, is
+kept in::
+
+ /environment/
+
+An example of the latter might be apt-proxy information, or
+environment constraints information. Separating the storage of these
+items allows for different zk acls to be specified in accordance with
+the expected access of the different types of information.
+
+Non provider-credential settings can be specified at when using juju
+bootstrap and will be serialized into the environment via::
+
+ juju bootstrap apt-proxy=http://
ec2-region=
+
+Environment settings can also be retrieved with::
+
+ juju get-env
+
+
+
+