From 5b15a39c59df593b3135abb5fd6289e158bdcf6a Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Wed, 25 Sep 2024 22:01:48 +0200 Subject: [PATCH] updated clickhouse state --- states/clickhouse/config.sls | 3 ++- states/clickhouse/users.sls | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 }}: