From 33e1302a12c9803707b9cb2bc373ef5374e8ccd8 Mon Sep 17 00:00:00 2001 From: Alexander Weidinger Date: Wed, 15 Aug 2018 02:01:40 +0200 Subject: [PATCH] Create Apache's logdir if necessary --- apache/config.sls | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apache/config.sls b/apache/config.sls index 7c7c829..60d6e85 100644 --- a/apache/config.sls +++ b/apache/config.sls @@ -3,6 +3,14 @@ include: - apache +{{ apache.logdir }}: + file.directory: + - makedirs: True + - require: + - pkg: apache + - watch_in: + - service: apache + {{ apache.configfile }}: file.managed: - template: jinja