Merge pull request #45 from thornycrackers/master

Create vhost DocumentRoot directory
This commit is contained in:
Nitin Madhok 2015-03-23 18:43:48 -04:00
commit bb33e3856a

View File

@ -20,6 +20,11 @@ include:
- watch_in: - watch_in:
- module: apache-reload - module: apache-reload
{{ id }}-documentroot:
file.directory:
- unless: test -d {{ site.get('DocumentRoot') }}
- name: {{ site.get('DocumentRoot') }}
{% if grains.os_family == 'Debian' %} {% if grains.os_family == 'Debian' %}
a2ensite {{ id }}{{ apache.confext }}: a2ensite {{ id }}{{ apache.confext }}:
cmd: cmd: