From f1b89abd3b19e35ce3a83b6d52939d6d8428a0ce Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 23 Mar 2015 16:53:45 -0600 Subject: [PATCH] Update standard.sls Make sure that you can makedirs incase parent folders are not created --- apache/vhosts/standard.sls | 1 + 1 file changed, 1 insertion(+) diff --git a/apache/vhosts/standard.sls b/apache/vhosts/standard.sls index bbf3fdd..3579e12 100644 --- a/apache/vhosts/standard.sls +++ b/apache/vhosts/standard.sls @@ -24,6 +24,7 @@ include: file.directory: - unless: test -d {{ site.get('DocumentRoot') }} - name: {{ site.get('DocumentRoot') }} + - makedirs: True {% if grains.os_family == 'Debian' %} a2ensite {{ id }}{{ apache.confext }}: