From a17ac0a9e707f2a94f3639734dff1fe861c77515 Mon Sep 17 00:00:00 2001 From: abednarik Date: Tue, 2 Apr 2019 16:20:32 -0300 Subject: [PATCH] Add recurse option when creating grafana dirs. Should not hurt if they are empty and can avoid issues when moving data between servers --- grafana/server.sls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/grafana/server.sls b/grafana/server.sls index 8bc42b1..dc6698d 100644 --- a/grafana/server.sls +++ b/grafana/server.sls @@ -83,6 +83,9 @@ grafana_{{ theme_name }}_css_override: - mode: 755 - user: {{ server.user }} - group: {{ server.group }} + - recurse: + - user + - group {{server.path.logs}}: file.directory: @@ -90,6 +93,9 @@ grafana_{{ theme_name }}_css_override: - mode: 755 - user: {{ server.user }} - group: {{ server.group }} + - recurse: + - user + - group grafana_service: service.running: