DescriptionRefactor the config generation logic.
As requested by reviews, change the server configuration generation logic
so that the various server configuration files are present on the
filesystem only for the actually deployed and started servers.
This is implemented by creating additional start_* and stop_* functions
in hooks/utils.py, called by the mixins in hooks/backend.py, and moving
there/creating the logic that generates, writes and remove the various
configuration files.
In addition:
- factor out common SSL code between HaproxyApacheMixin and
BuiltinServerMixin;
- rename options.http to options.insecure in server/guiserver/manage.py
- remove unused code and backend properties;
- miscellaneous cleanup.
The diff is still a bit big, even after moving the builtin server
integration changes to another branch. Sorry about that.
https://code.launchpad.net/~teknico/charms/precise/juju-gui/refactor-config-generation-logic/+merge/178594
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 12
Patch Set 2 : Refactor the config generation logic. #Patch Set 3 : Refactor the config generation logic. #
Total comments: 1
Patch Set 4 : Refactor the config generation logic. #
MessagesTotal messages: 12
|