~lutostag/juju-deployer/populate-first+test-fixes

« back to all changes in this revision

Viewing changes to doc/config.rst

  • Committer: Kapil Thangavelu
  • Date: 2015-01-08 11:11:52 UTC
  • Revision ID: kapil@canonical.com-20150108111152-2dletgrk7nnoedoi
update docs wrt to legacy syntax

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
Relations
56
56
=========
57
57
 
58
 
Relations can be specified in a few different formats.
59
 
 
60
 
legacy::
 
58
Relations can be specified in a few different formats. 
 
59
 
 
60
*legacy* format uses a set of nested dicts with weights specified to
 
61
specify relation creation ordering, this form is only for
 
62
compatibility has been deprecated for over two years (2012)::
 
63
 
61
64
    relations:
62
 
        - [blog, [db, memcached]]
 
65
       keystone: 
 
66
          weight: 100,
 
67
          consumes:
 
68
             - mysql
 
69
 
 
70
 
 
71
In modern syntax, relations is an ordered list of endpoint pairs
63
72
 
64
73
endpoint pairs::
 
74
 
65
75
    relations:
66
76
        - [blog, db]
67
77
        - [blog, memcached]
68
78
 
69
79
nested endpoint pairs::
 
80
 
70
81
    relations:
71
82
        - [blog, [db, memcached]]
72
83
 
 
84
The two forms above are equivalent and both will create a relation from
 
85
blog to db and memcached.
 
86
 
 
87
 
73
88
Inheritance or Multiple Configuration Files
74
89
===========================================
75
90