{%- from "clickhouse/map.jinja" import clickhouse with context -%} {%- for nodename, settings in clickhouse.clusters[clickhouse.cluster].nodes.items() %} {%- if settings.active|default(true) %} {{ nodename }} 9281 {%- endif %} {%- endfor %} 9281 {{ clickhouse.clusters[clickhouse.cluster].nodes[salt['grains.get']('fqdn')].id }} /var/lib/clickhouse/coordination/log /var/lib/clickhouse/coordination/snapshots false 10000 30000 trace false {%- for nodename, settings in clickhouse.clusters[clickhouse.cluster].nodes.items() %} {%- if settings.keeper|default(false) %} {{ settings.id }} {{ nodename }} 9444 {%- endif %} {%- endfor %}