![Łukasz Oleś](/assets/img/avatar_default.png)
- rename VirtualResource to Composer - rename event parameter depend_action to child_action - rename values parameter to input Closes-bug: #1526780 Change-Id: Ib974e14ff4bda44c2d7d991f62aa4a06dea160ea
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
id: haproxy_riak_config
|
|
|
|
resources:
|
|
- id: haproxy_riak_config_http
|
|
from: resources/haproxy_service_config
|
|
tags: ['service=riak', 'protocol=http']
|
|
input:
|
|
listen_port: #{http_listen_port}#
|
|
protocol: 'http'
|
|
name: 'riak_haproxy_http'
|
|
backends:server:
|
|
#% for riak in riaks %#
|
|
- #{riak}#::riak_hostname
|
|
#% endfor %#
|
|
backends:port:
|
|
#% for riak in riaks %#
|
|
- #{riak}#::riak_port_http
|
|
#% endfor %#
|
|
|
|
- id: haproxy_riak_config_pb
|
|
from: resources/haproxy_service_config
|
|
tags: ['service=riak', 'protocol=tcp']
|
|
input:
|
|
listen_port: #{pb_listen_port}#
|
|
protocol: 'tcp'
|
|
name: 'riak_haproxy_pb'
|
|
backends:server:
|
|
#% for riak in riaks %#
|
|
- #{riak}#::riak_hostname
|
|
#% endfor %#
|
|
backends:port:
|
|
#% for riak in riaks %#
|
|
- #{riak}#::riak_port_pb
|
|
#% endfor %#
|
|
|
|
updates:
|
|
- with_tags: ['resource=haproxy_config']
|
|
input:
|
|
config:protocol:
|
|
- haproxy_riak_config_http::protocol
|
|
- haproxy_riak_config_pb::protocol
|
|
config:listen_port:
|
|
- haproxy_riak_config_http::listen_port
|
|
- haproxy_riak_config_pb::listen_port
|
|
config:name:
|
|
- haproxy_riak_config_http::name
|
|
- haproxy_riak_config_pb::name
|
|
config:backends:
|
|
- haproxy_riak_config_http::backends
|
|
- haproxy_riak_config_pb::backends
|