Skip to content

Instantly share code, notes, and snippets.

@lazypower
Created June 4, 2015 15:34
Show Gist options
  • Save lazypower/c6e618590c5b19ad1cc7 to your computer and use it in GitHub Desktop.
Save lazypower/c6e618590c5b19ad1cc7 to your computer and use it in GitHub Desktop.
consul-stack:
series: trusty
services:
haproxy:
charm: "local:trusty/haproxy"
etcd:
charm: "local:trusty/etcd"
num_units: 3
to: [0, docker, docker]
registrator:
charm: "local:trusty/registrator"
docker:
charm: "local:trusty/docker"
num_units: 1
options:
latest: true
heka-sub:
charm: "local:trusty/heka-sub"
options:
juju_agent: true
heka-hub:
charm: "local:trusty/heka-hub"
num_units: 1
to: 0
options:
rstout: true
jujud_logs: true
juju_agent: true
consul:
charm: "local:trusty/consul"
num_units: 3
to: [docker]
options:
bootstrap-expect: 1
relations:
- ["heka-sub:docker_logging", "docker:logging"]
- ["heka-sub:heka_out", "heka-hub:heka_in"]
- ["heka-sub:heka_out", "heka-hub:heka_in"]
- ["registrator", "docker"]
- ["registrator:consul-api", "consul:api"]
- ["registrator:etcd-api", "etcd:client"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment