diff --git a/states/clickhouse/config.sls b/states/clickhouse/config.sls index 18d1b56..cffae4f 100644 --- a/states/clickhouse/config.sls +++ b/states/clickhouse/config.sls @@ -2,7 +2,8 @@ --- clickhouse-config-folder: file.directory: - - name: /etc/clickhouse-server/config.d + - name: /etc/clickhouse-server/config.d + - clean: True clickhouse-config-file-settings: file.managed: diff --git a/states/clickhouse/users.sls b/states/clickhouse/users.sls index 592cd57..f25fb8d 100644 --- a/states/clickhouse/users.sls +++ b/states/clickhouse/users.sls @@ -2,7 +2,8 @@ {%- from "clickhouse/map.jinja" import clickhouse with context %} clickhouse-users-folder: file.directory: - - name: /etc/clickhouse-server/users.d + - name: /etc/clickhouse-server/users.d + - clean: True {% for user, params in clickhouse.users.items() %} clickhouse-user-{{ user }}: