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

9 lines
325 B
Plaintext
Raw Permalink Normal View History

2023-12-04 22:35:54 +01:00
{%- 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>