DescriptionAllow 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-relation-changed is
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_deploy/charmworld on install if present, since it may
contain incorrect or invalid config data.
https://code.launchpad.net/~abentley/charms/precise/charmworld/multi-mongo/+merge/148552
(do not edit description out of merge proposal)
Patch Set 1 #
MessagesTotal messages: 2
|