paulbsd-salt/states/clickhouse/config.sls

20 lines
545 B
Plaintext
Raw Normal View History

2023-12-04 22:35:54 +01:00
{%- from "clickhouse/map.jinja" import clickhouse with context -%}
---
2024-03-01 17:40:19 +01:00
clickhouse-config-folder:
file.directory:
2024-09-25 22:01:48 +02:00
- name: /etc/clickhouse-server/config.d
- clean: True
2024-03-01 17:40:19 +01:00
2024-09-25 22:08:58 +02:00
{% for file in clickhouse.config.files %}
clickhouse-config-file-{{ file }}:
2023-12-04 22:35:54 +01:00
file.managed:
2024-09-25 22:15:27 +02:00
- name: /etc/clickhouse-server/config.d/{{ file }}.xml
- source: salt://clickhouse/templates/{{ file }}.xml.j2
2024-09-25 22:05:25 +02:00
- user: clickhouse
- group: clickhouse
- mode: 600
- template: jinja
2024-09-25 22:27:42 +02:00
- require_in:
2024-09-25 22:24:30 +02:00
- file: clickhouse-config-folder
2024-09-25 22:08:58 +02:00
{% endfor %}