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
=== modified file 'doc/config.rst'
--- doc/config.rst 2013-05-16 03:20:42 +0000
+++ doc/config.rst 2013-10-25 00:50:51 +0000
@@ -1,8 +1,13 @@
11
2About
3=====
4
5Juju-deployer is a tool to deploy complex stacks of charms quickly via a yaml
6or json configuration file.
7
2Configuration8Configuration
3=============9=============
410
5
6The deployer configuration file can be in either yaml or json11The deployer configuration file can be in either yaml or json
7formats. The contents of the top level are a dictionary/hash mapping12formats. The contents of the top level are a dictionary/hash mapping
8of stack names to configuration.13of stack names to configuration.
@@ -18,7 +23,6 @@
18Services23Services
19========24========
2025
21
22Snippet::26Snippet::
2327
24 wordpress-stage:28 wordpress-stage:
@@ -34,25 +38,23 @@
34 icon: include-base64://file.ico38 icon: include-base64://file.ico
35 39
3640
37 The service's charm name will be infered from the vcs branch name if41The service's charm name will be infered from the vcs branch name if
38 possible, else it will assume the service name, is the name of the42possible, else it will assume the service name, is the name of the
39 charm, or can be specified manually via the charm key.43charm, or can be specified manually via the charm key.
4044
41 The service constraints are specified as a single string value45The service constraints are specified as a single string value
42 corresponding to what would be specified on the command line. Valid46corresponding to what would be specified on the command line. Valid
43 generic constraints for juju-core are mem, cpu-cores, cpu-power.47generic constraints for juju-core are mem, cpu-cores, cpu-power.
4448
45 Service configuration is specified a dictionary of key/value49Service configuration is specified a dictionary of key/value
46 mapping. There is support for including data from external50mapping. There is support for including data from external
47 files with either the include-file://path-to-file or51files with either the include-file://path-to-file or
48 include-base64://path-to-file. Relative paths are resolved52include-base64://path-to-file. Relative paths are resolved
49 relative to the config file.53relative to the config file.
50
5154
52Relations55Relations
53=========56=========
5457
55
56Relations can be specified in a few different formats.58Relations can be specified in a few different formats.
5759
58legacy::60legacy::
@@ -68,11 +70,24 @@
68 relations:70 relations:
69 - [blog, [db, memcached]]71 - [blog, [db, memcached]]
7072
7173Inheritance or Multiple Configuration Files
72Inheritance74===========================================
73===========75
7476There are a number of reasons why you may wish to have separate configuration
75An environment configuration::77files for a given juju environment you're deploying to. An example is if you
78have a development, staging and production environment with small differences
79(hostnames, constraints, tuning options, etc.) but don't want entirely separate
80juju deployer config files for each. Another example is if you want to be able
81to have secrets such as SSL certs in a different config file so you can share
82the bulk of the config (anything non-secret) with a wider audience without
83including the secrets.
84
85In this case your options are to separate config files that you pass on the
86command line to juju-deployer::
87
88 juju-deployer -c wordpress.cfg -c wordpress-secrets.cfg -s 90 wordpress
89
90Or config inheritance::
7691
77 wordpress-stage:92 wordpress-stage:
78 series: precise93 series: precise

Subscribers

People subscribed via source and target branches