Explorar el Código

Move vhostdir `to config.sls`

master
Javier Bértoli hace 7 años
padre
commit
a7f66b6344
Se han modificado 2 ficheros con 8 adiciones y 8 borrados
  1. +8
    -0
      apache/config.sls
  2. +0
    -8
      apache/init.sls

+ 8
- 0
apache/config.sls Ver fichero

- context: - context:
apache: {{ apache }} apache: {{ apache }}


{{ apache.vhostdir }}:
file.directory:
- makedirs: True
- require:
- pkg: apache
- watch_in:
- service: apache

{% if grains['os_family']=="Debian" %} {% if grains['os_family']=="Debian" %}
/etc/apache2/envvars: /etc/apache2/envvars:
file.managed: file.managed:

+ 0
- 8
apache/init.sls Ver fichero

- name: {{ apache.service }} - name: {{ apache.service }}
- enable: True - 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 # The following states are inert by default and can be used by other states to
# trigger a restart or reload as needed. # trigger a restart or reload as needed.
apache-reload: apache-reload:

Cargando…
Cancelar
Guardar