Ales Komarek | a75a89c | 2014-01-19 17:50:15 +0100 | [diff] [blame] | 1 | {
|
Michael Kutý | b1bb292 | 2014-02-10 21:44:31 +0100 | [diff] [blame^] | 2 | {%- for backend in pillar.statsd.server.backends %}
|
Ales Komarek | a75a89c | 2014-01-19 17:50:15 +0100 | [diff] [blame] | 3 | {%- if backend.type == 'graphite' %}
|
| 4 | graphitePort: {{ backend.port }},
|
| 5 | graphiteHost: "{{ backend.host }}",
|
Michael Kutý | b1bb292 | 2014-02-10 21:44:31 +0100 | [diff] [blame^] | 6 | backends: [ "./backends/graphite" ],
|
Ales Komarek | a75a89c | 2014-01-19 17:50:15 +0100 | [diff] [blame] | 7 | {%- endif %}
|
| 8 | {%- if backend.type == 'amqp' %}
|
| 9 | amqpHost: '{{ backend.host }}',
|
| 10 | amqpPort: {{ backend.port }},
|
| 11 | amqpLogin: '{{ backend.user }}',
|
| 12 | amqpPassword: '{{ backend.password }}',
|
| 13 | amqpVhost: '{{ backend.virtual_host }}',
|
| 14 | amqpQueue: '{{ backend.queue }}',
|
| 15 | amqpDefaultExchange: '{{ backend.exchange }}',
|
| 16 | {%- endif %}
|
| 17 | {%- endfor %}
|
Michael Kutý | b1bb292 | 2014-02-10 21:44:31 +0100 | [diff] [blame^] | 18 | port: {{ pillar.statsd.server.bind.port }}
|
Ales Komarek | a75a89c | 2014-01-19 17:50:15 +0100 | [diff] [blame] | 19 | } |