paulbsd-salt/states/clickhouse-backup/config.sls
Paul Lecuq 046de339c8
All checks were successful
continuous-integration/drone/push Build is passing
added clickhouse-backup state
2024-02-07 22:02:04 +01:00

15 lines
418 B
Plaintext

---
{%- from "clickhouse-backup/map.jinja" import clickhousebackup with context %}
clickhouse-backup-config-dir:
file.directory:
- name: {{ clickhousebackup.config_dir }}
- user: root
- group: root
- mode: 700
clickhouse-backup-config-file:
file.managed:
- name: {{ clickhousebackup.config_dir }}/config.yml
- source: salt://clickhouse-backup/templates/config.yml.j2
- template: jinja