From a7f66b63449edab5a4c1b7c4b2851d53fc95c485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20B=C3=A9rtoli?= Date: Mon, 24 Apr 2017 15:33:44 -0300 Subject: [PATCH] Move vhostdir `to config.sls` --- apache/config.sls | 8 ++++++++ apache/init.sls | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apache/config.sls b/apache/config.sls index 677bd6c..6a29683 100644 --- a/apache/config.sls +++ b/apache/config.sls @@ -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: diff --git a/apache/init.sls b/apache/init.sls index becb3d6..9731c5b 100644 --- a/apache/init.sls +++ b/apache/init.sls @@ -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: