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

20 lines
545 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
- require_in:
- file: clickhouse-config-folder
{% endfor %}