|
1 | | -{ |
2 | | - "backend": { |
3 | | - "type": "elastic", |
4 | | - "connection": [ |
5 | | - {%- for node in elasticsearch.hosts %} |
6 | | - { |
7 | | - "host": "{{ node.host }}", |
8 | | - "port": {{ node.port }} |
9 | | - } |
10 | | - {%- if loop.length > 1 and not loop.last %},{% endif -%} |
11 | | - {%- endfor -%} |
12 | | - ] |
13 | | - }, |
14 | | - "regions": [ |
15 | | - {%- for region in availability.regions %} |
16 | | - { |
17 | | - "name": "{{ region.name }}", |
18 | | - "services": [ |
19 | | - {%- for service in region.services -%} |
20 | | - { |
21 | | - "name": "{{ service.name }}", |
22 | | - "url": "{{ service.url }}" |
23 | | - } |
24 | | - {%- if loop.length > 1 and not loop.last %},{% endif -%} |
25 | | - {%- endfor -%} |
26 | | - ] |
27 | | - } |
28 | | - {%- if loop.length > 1 and not loop.last %},{% endif -%} |
29 | | - {%- endfor %} |
30 | | - ], |
| 1 | +backend: |
| 2 | + type: elastic |
| 3 | + connection: |
| 4 | + {%- for node in elasticsearch.hosts %} |
| 5 | + - host: {{ node.host }} |
| 6 | + port: {{ node.port }} |
| 7 | + {%- endfor -%} |
| 8 | +regions: |
| 9 | +{%- for region in availability.regions %} |
| 10 | + - name: {{ region.name }} |
| 11 | + services: |
| 12 | + {%- for service in region.services -%} |
| 13 | + - name: {{ service.name }} |
| 14 | + url: {{ service.url }} |
| 15 | + {%- endfor -%} |
| 16 | +{%- endfor %} |
31 | 17 |
|
32 | | - "period": {{ availability.watcher.period }}, |
33 | | - "connection_timeout": {{ availability.watcher.connection_timeout }}, |
34 | | - "read_timeout": {{ availability.watcher.read_timeout }}, |
35 | | -} |
| 18 | +period: {{ availability.watcher.period }} |
| 19 | +connection_timeout: {{ availability.watcher.connection_timeout }} |
| 20 | +read_timeout: {{ availability.watcher.read_timeout }} |
0 commit comments