paulbsd-salt/states/clickhouse/templates/macros.xml.j2

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>