Merge lp:~mthaddon/juju-deployer/doc-updates into lp:juju-deployer

Proposed by Tom Haddon
Status: Merged
Merged at revision: 85
Proposed branch: lp:~mthaddon/juju-deployer/doc-updates
Merge into: lp:juju-deployer
Diff against target: 95 lines (+37/-22)
1 file modified
doc/config.rst (+37/-22)
To merge this branch: bzr merge lp:~mthaddon/juju-deployer/doc-updates
Reviewer Review Type Date Requested Status
juju-deployers Pending
Review via email: mp+192622@code.launchpad.net

Description of the change

Some doc updates trying to clarify inheritance/chaining config files based on internal docs that we've created to expose this info to admins.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/config.rst'
2--- doc/config.rst 2013-05-16 03:20:42 +0000
3+++ doc/config.rst 2013-10-25 00:50:51 +0000
4@@ -1,8 +1,13 @@
5
6+About
7+=====
8+
9+Juju-deployer is a tool to deploy complex stacks of charms quickly via a yaml
10+or json configuration file.
11+
12 Configuration
13 =============
14
15-
16 The deployer configuration file can be in either yaml or json
17 formats. The contents of the top level are a dictionary/hash mapping
18 of stack names to configuration.
19@@ -18,7 +23,6 @@
20 Services
21 ========
22
23-
24 Snippet::
25
26 wordpress-stage:
27@@ -34,25 +38,23 @@
28 icon: include-base64://file.ico
29
30
31- The service's charm name will be infered from the vcs branch name if
32- possible, else it will assume the service name, is the name of the
33- charm, or can be specified manually via the charm key.
34-
35- The service constraints are specified as a single string value
36- corresponding to what would be specified on the command line. Valid
37- generic constraints for juju-core are mem, cpu-cores, cpu-power.
38-
39- Service configuration is specified a dictionary of key/value
40- mapping. There is support for including data from external
41- files with either the include-file://path-to-file or
42- include-base64://path-to-file. Relative paths are resolved
43- relative to the config file.
44-
45+The service's charm name will be infered from the vcs branch name if
46+possible, else it will assume the service name, is the name of the
47+charm, or can be specified manually via the charm key.
48+
49+The service constraints are specified as a single string value
50+corresponding to what would be specified on the command line. Valid
51+generic constraints for juju-core are mem, cpu-cores, cpu-power.
52+
53+Service configuration is specified a dictionary of key/value
54+mapping. There is support for including data from external
55+files with either the include-file://path-to-file or
56+include-base64://path-to-file. Relative paths are resolved
57+relative to the config file.
58
59 Relations
60 =========
61
62-
63 Relations can be specified in a few different formats.
64
65 legacy::
66@@ -68,11 +70,24 @@
67 relations:
68 - [blog, [db, memcached]]
69
70-
71-Inheritance
72-===========
73-
74-An environment configuration::
75+Inheritance or Multiple Configuration Files
76+===========================================
77+
78+There are a number of reasons why you may wish to have separate configuration
79+files for a given juju environment you're deploying to. An example is if you
80+have a development, staging and production environment with small differences
81+(hostnames, constraints, tuning options, etc.) but don't want entirely separate
82+juju deployer config files for each. Another example is if you want to be able
83+to have secrets such as SSL certs in a different config file so you can share
84+the bulk of the config (anything non-secret) with a wider audience without
85+including the secrets.
86+
87+In this case your options are to separate config files that you pass on the
88+command line to juju-deployer::
89+
90+ juju-deployer -c wordpress.cfg -c wordpress-secrets.cfg -s 90 wordpress
91+
92+Or config inheritance::
93
94 wordpress-stage:
95 series: precise

Subscribers

People subscribed via source and target branches