diff --git a/states/clickhouse/config.sls b/states/clickhouse/config.sls index 71360c9..171795a 100644 --- a/states/clickhouse/config.sls +++ b/states/clickhouse/config.sls @@ -14,4 +14,6 @@ clickhouse-config-file-{{ file }}: - group: clickhouse - mode: 600 - template: jinja + - require_in + - file: clickhouse-config-folder {% endfor %} diff --git a/states/clickhouse/users.sls b/states/clickhouse/users.sls index f25fb8d..32266b8 100644 --- a/states/clickhouse/users.sls +++ b/states/clickhouse/users.sls @@ -17,4 +17,6 @@ clickhouse-user-{{ user }}: - context: name: {{ user }} params: {{ params }} + - require_in + - file: clickhouse-users-folder {% endfor %}