Merge lp:~gnuoy/charms/precise/haproxy/allow-reverseproxy-charms-by-name into lp:charms/haproxy
Proposed by
Liam Young
Status: | Merged |
---|---|
Approved by: | Juan L. Negron |
Approved revision: | 59 |
Merge reported by: | Juan L. Negron |
Merged at revision: | not available |
Proposed branch: | lp:~gnuoy/charms/precise/haproxy/allow-reverseproxy-charms-by-name |
Merge into: | lp:charms/haproxy |
Diff against target: |
20 lines (+3/-0) 1 file modified
hooks/hooks.py (+3/-0) |
To merge this branch: | bzr merge lp:~gnuoy/charms/precise/haproxy/allow-reverseproxy-charms-by-name |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juan L. Negron (community) | Approve | ||
Review via email: mp+127191@code.launchpad.net |
Description of the change
When a unit joins the haproxy reverseproxy relationship. Check whether there is an existing stanza which matches its name. If there is then add it to that stanza. This allow charms which don't specify a service name to be added to specific haproxy stanzas.
For example is haproxy has been setup already with a musicsearch and videosearch stanza then,
juju deploy solr-jetty musicsearch
juju deploy solr-jetty videosearch
juju add-relation haproxy musicsearch
juju add-relation haproxy videosearch
will now add each unit to the stanza with the corresponding name.
To post a comment you must log in.
Reviewing this now.
-Juan