浏览代码

Move vhostdir `to config.sls`

master
Javier Bértoli 7 年前
父节点
当前提交
a7f66b6344
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. +8
    -0
      apache/config.sls
  2. +0
    -8
      apache/init.sls

+ 8
- 0
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:

+ 0
- 8
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:

正在加载...
取消
保存