Browse Source

Update standard.sls

Create the vhost DocumentRoot directory if it does not exist
master
Cody Hiar 9 years ago
parent
commit
138a522f3f
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      apache/vhosts/standard.sls

+ 5
- 0
apache/vhosts/standard.sls View File

@@ -19,6 +19,11 @@ include:
- pkg: apache
- watch_in:
- module: apache-reload
{{ id }}-documentroot:
file.directory:
- unless: test -d {{ site.get('DocumentRoot') }}
- name: {{ site.get('DocumentRoot') }}

{% if grains.os_family == 'Debian' %}
a2ensite {{ id }}{{ apache.confext }}:

Loading…
Cancel
Save