Merge lp:~cmars/sharinfoo/haproxy-relation into lp:sharinfoo

Proposed by Casey Marshall
Status: Merged
Merged at revision: 14
Proposed branch: lp:~cmars/sharinfoo/haproxy-relation
Merge into: lp:sharinfoo
Diff against target: 35 lines (+15/-3)
3 files modified
charms/precise/sharinfoo/hooks/website-relation-changed (+12/-0)
charms/precise/sharinfoo/metadata.yaml (+2/-2)
charms/precise/sharinfoo/revision (+1/-1)
To merge this branch: bzr merge lp:~cmars/sharinfoo/haproxy-relation
Reviewer Review Type Date Requested Status
Matthew Williams (community) Approve
Andrew W. Deane (community) Approve
Casey Marshall Pending
Review via email: mp+201462@code.launchpad.net

Commit message

Add website relation for reverse proxying with haproxy charm.

Description of the change

Add website relation for reverse proxying with haproxy charm.

To post a comment you must log in.
Revision history for this message
Casey Marshall (cmars) wrote :

To test with haproxy charm:

1. juju deploy sharinfoo
2. juju deploy haproxy
3. juju add-relation sharinfoo:website haproxy:reverseproxy

Revision history for this message
Andrew W. Deane (andrew-w-deane) :
review: Approve
Revision history for this message
Matthew Williams (mattyw) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'charms/precise/sharinfoo/hooks/website-relation-changed'
2--- charms/precise/sharinfoo/hooks/website-relation-changed 1970-01-01 00:00:00 +0000
3+++ charms/precise/sharinfoo/hooks/website-relation-changed 2014-01-13 17:21:51 +0000
4@@ -0,0 +1,12 @@
5+#!/bin/bash
6+
7+host=$(unit-get private-address)
8+
9+relation-set "services=
10+- { service_name: sharinfoo,
11+ service_host: 0.0.0.0,
12+ service_port: 8080,
13+ service_options: [mode http],
14+ servers: [[sharinfoo, $host, 8080, '']],
15+ server_options: weight 1 maxconn 1024 check inter 10000 }
16+"
17
18=== modified file 'charms/precise/sharinfoo/metadata.yaml'
19--- charms/precise/sharinfoo/metadata.yaml 2014-01-07 21:44:54 +0000
20+++ charms/precise/sharinfoo/metadata.yaml 2014-01-13 17:21:51 +0000
21@@ -7,5 +7,5 @@
22 categories:
23 - applications
24 provides:
25- fileserver:
26- interface: shfoo
27+ website:
28+ interface: http
29
30=== modified file 'charms/precise/sharinfoo/revision'
31--- charms/precise/sharinfoo/revision 2014-01-02 18:21:40 +0000
32+++ charms/precise/sharinfoo/revision 2014-01-13 17:21:51 +0000
33@@ -1,1 +1,1 @@
34-1
35+2

Subscribers

People subscribed via source and target branches

to all changes: