Merge pull request #81 from jcristau/no-documentroot

allow absence of DocumentRoot
This commit is contained in:
puneet kandhari 2015-09-21 09:17:49 -05:00
commit 92cc127bfe

View File

@ -21,11 +21,13 @@ include:
- watch_in:
- module: apache-reload
{% if site.get('DocumentRoot') != False %}
{{ id }}-documentroot:
file.directory:
- unless: test -d {{ documentroot }}
- name: {{ documentroot }}
- makedirs: True
{% endif %}
{% if grains.os_family == 'Debian' %}
{% if site.get('enabled') %}