paulbsd-salt/states/clickhouse/config.sls
Paul Lecuq bc10a006e9
All checks were successful
continuous-integration/drone/push Build is passing
updated clickhouse state
2024-09-25 22:15:27 +02:00

18 lines
488 B
Plaintext

{%- from "clickhouse/map.jinja" import clickhouse with context -%}
---
clickhouse-config-folder:
file.directory:
- name: /etc/clickhouse-server/config.d
- clean: True
{% for file in clickhouse.config.files %}
clickhouse-config-file-{{ file }}:
file.managed:
- name: /etc/clickhouse-server/config.d/{{ file }}.xml
- source: salt://clickhouse/templates/{{ file }}.xml.j2
- user: clickhouse
- group: clickhouse
- mode: 600
- template: jinja
{% endfor %}