paulbsd-salt/states/clickhouse-backup/config.sls

15 lines
418 B
Plaintext
Raw Permalink Normal View History

2024-02-07 22:02:04 +01:00
---
{%- 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