Browse Source

allow absence of DocumentRoot

DocumentRoot is useless for a plain redirect or proxy vhost, no need to
force creating the directory.

Signed-off-by: Julien Cristau <julien.cristau@logilab.fr>
tags/v0.37.4
Julien Cristau 9 years ago
parent
commit
9be8ade5aa
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      apache/vhosts/standard.sls

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

- watch_in: - watch_in:
- module: apache-reload - module: apache-reload


{% if site.get('DocumentRoot') != False %}
{{ id }}-documentroot: {{ id }}-documentroot:
file.directory: file.directory:
- unless: test -d {{ documentroot }} - unless: test -d {{ documentroot }}
- name: {{ documentroot }} - name: {{ documentroot }}
- makedirs: True - makedirs: True
{% endif %}


{% if grains.os_family == 'Debian' %} {% if grains.os_family == 'Debian' %}
{% if site.get('enabled') %} {% if site.get('enabled') %}

Loading…
Cancel
Save