diff --git a/apache/vhosts/standard.sls b/apache/vhosts/standard.sls index 3579e12..15efe20 100644 --- a/apache/vhosts/standard.sls +++ b/apache/vhosts/standard.sls @@ -19,12 +19,14 @@ include: - pkg: apache - watch_in: - module: apache-reload - + +{% if 'DocumentRoot' in site %} {{ id }}-documentroot: file.directory: - unless: test -d {{ site.get('DocumentRoot') }} - name: {{ site.get('DocumentRoot') }} - makedirs: True +{% endif %} {% if grains.os_family == 'Debian' %} a2ensite {{ id }}{{ apache.confext }}: