Merge lp:~abentley/charms/precise/charmworld/multi-mongo into lp:~juju-jitsu/charms/precise/charmworld/trunk
Status: | Merged |
---|---|
Merged at revision: | 43 |
Proposed branch: | lp:~abentley/charms/precise/charmworld/multi-mongo |
Merge into: | lp:~juju-jitsu/charms/precise/charmworld/trunk |
Diff against target: |
295 lines (+89/-80) 9 files modified
common (+7/-2) hooks/config-changed (+17/-17) hooks/database-relation-broken (+0/-7) hooks/database-relation-changed (+14/-19) hooks/install (+1/-0) hooks/upgrade-charm (+5/-8) production_overrides.ini (+0/-1) revision (+1/-1) scripts/write_config.py (+44/-25) |
To merge this branch: | bzr merge lp:~abentley/charms/precise/charmworld/multi-mongo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju-Jitsu Hackers | Pending | ||
Review via email: mp+148552@code.launchpad.net |
Description of the change
Allow multiple mongodb instances
Change functionality of write_config so that it directly interrogates the
environment to determine the juju hosts, instead of accepting commandline
parameters or reading previous config. Use mongo.url setting instead of
host/port, and stop setting session.secret (it's now unused). write_config
moves into scripts/ partly for cleanliness and partly to access charmsupport.
With this change to write_config, config-changed now handles db relation
changes as well as setting changes, so invoke it in every db relation hook
(except join, since -changed will follow join). database-
now essentially a wrapper to ensure that ingest is run when a database becomes
available.
Flatten the refresh function back into the body of config-changed, since it
would be invoked unconditionally.
Delete ~webops_
contain incorrect or invalid config data.
On 2013/02/14 20:27:24, abentley wrote:
> Please take a look.
lgtm.
https:/ /codereview. appspot. com/7314102/