
Useful for CRs that are outside of repo (ie. riak_cluster.yaml) Change-Id: I7f436cb447a22c9bc5b68a35d1c73538571dfd10
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
id: riak_cluster
|
|
|
|
resources:
|
|
- id: riak_service1
|
|
# `./` added by intention
|
|
from: ./riak_service.yaml
|
|
input:
|
|
node: #{nodes[0]}#
|
|
index: 1
|
|
join_to: ''
|
|
|
|
- id: riak_service2
|
|
# `./` ommited by intention
|
|
from: riak_service.yaml
|
|
input:
|
|
node: #{nodes[1]}#
|
|
index: 2
|
|
join_to: riak_service1
|
|
|
|
- id: riak_service3
|
|
# `./` ommited by intention
|
|
from: riak_service.yaml
|
|
input:
|
|
node: #{nodes[2]}#
|
|
index: 3
|
|
join_to: riak_service1
|
|
|
|
- id: haproxy_riak_config
|
|
from: ./haproxy_riak_config.yaml
|
|
input:
|
|
http_listen_port: 8098
|
|
pb_listen_port: 8087
|
|
riaks: ['riak_service1', 'riak_service2', 'riak_service3']
|
|
|
|
- id: haproxy1
|
|
from: templates/haproxy
|
|
input:
|
|
node: #{nodes[0]}#
|
|
service_configs: ['haproxy_riak_config_pb', 'haproxy_riak_config_http']
|
|
index: 1
|
|
|
|
- id: haproxy2
|
|
from: templates/haproxy
|
|
input:
|
|
node: #{nodes[1]}#
|
|
service_configs: ['haproxy_riak_config_pb', 'haproxy_riak_config_http']
|
|
index: 2
|
|
|
|
- id: haproxy3
|
|
from: templates/haproxy
|
|
input:
|
|
node: #{nodes[2]}#
|
|
service_configs: ['haproxy_riak_config_pb', 'haproxy_riak_config_http']
|
|
index: 3
|