Merge lp://staging/~abentley/charms/precise/charmworld/auto-production into lp://staging/~juju-jitsu/charms/precise/charmworld/trunk
Proposed by
Aaron Bentley
Status: | Merged |
---|---|
Merged at revision: | 34 |
Proposed branch: | lp://staging/~abentley/charms/precise/charmworld/auto-production |
Merge into: | lp://staging/~juju-jitsu/charms/precise/charmworld/trunk |
Diff against target: |
183 lines (+112/-12) 7 files modified
common (+3/-5) hooks/config-changed (+3/-4) hooks/database-relation-broken (+1/-1) hooks/database-relation-changed (+1/-1) production_overrides.ini (+46/-0) revision (+1/-1) write_config.py (+57/-0) |
To merge this branch: | bzr merge lp://staging/~abentley/charms/precise/charmworld/auto-production |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju-Jitsu Hackers | Pending | ||
Review via email: mp+145420@code.staging.launchpad.net |
Description of the change
Auto-generate production.ini
production.ini is now auto-generated from
1. defaults
2. overrides
3. specific settings from any existing production.ini (session.secret,
mongo.port, mongo.host)
4. juju environment
Once production.ini is removed from the source tree, this will minimize the
chance of conflicts while ensuring production.ini is up-to-date with the
defaults.
To post a comment you must log in.
lgtm
I wonder a little bit if we can reuse the configparser merging code abel lib/config, but I suppose it's different enough since
has in charmworld/
this code also has field limitations defined on what can be overridden.
Should there be some documentation around to help aid other people
working on the charm on how the parts fit together? If we handed this to
abel or jc would it be clear how the ini was generated and used in
production?
https:/ /codereview. appspot. com/7229057/