9 lines
325 B
Django/Jinja
9 lines
325 B
Django/Jinja
{%- from "clickhouse/map.jinja" import clickhouse with context %}
|
|
<clickhouse>
|
|
<macros>
|
|
<cluster>{{ clickhouse.cluster }}</cluster>
|
|
<shard>{{ clickhouse.clusters[clickhouse.cluster].nodes[salt['grains.get']('fqdn')].shard }}</shard>
|
|
<replica>{{ salt['grains.get']('fqdn') }}</replica>
|
|
</macros>
|
|
</clickhouse>
|