Move vhostdir to config.sls

This commit is contained in:
Javier Bértoli 2017-04-24 15:33:44 -03:00
parent ffac9b2381
commit a7f66b6344
2 changed files with 8 additions and 8 deletions

View File

@ -15,6 +15,14 @@ include:
- context:
apache: {{ apache }}
{{ apache.vhostdir }}:
file.directory:
- makedirs: True
- require:
- pkg: apache
- watch_in:
- service: apache
{% if grains['os_family']=="Debian" %}
/etc/apache2/envvars:
file.managed:

View File

@ -14,14 +14,6 @@ apache:
- name: {{ apache.service }}
- enable: True
{{ apache.vhostdir }}:
file.directory:
- makedirs: True
- require:
- pkg: apache
- watch_in:
- service: apache
# The following states are inert by default and can be used by other states to
# trigger a restart or reload as needed.
apache-reload: