{%- 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>