Update standard.sls
Create the vhost DocumentRoot directory if it does not exist
This commit is contained in:
parent
1949ff4f05
commit
138a522f3f
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user