Saltstack Official Apache Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

own_default_vhost.sls 514B

123456789101112131415161718192021
  1. {% if grains['os_family']=="Debian" %}
  2. {% from "apache/map.jinja" import apache with context %}
  3. include:
  4. - apache
  5. apache_own-default-vhost:
  6. file.managed:
  7. - name: {{ apache.vhostdir }}/000-default.conf
  8. - source: salt://apache/files/{{ salt['grains.get']('os_family') }}/sites-available/000-default.conf
  9. - require:
  10. - pkg: apache
  11. - watch_in:
  12. - module: apache-reload
  13. - require_in:
  14. - module: apache-restart
  15. - module: apache-reload
  16. - service: apache
  17. {% endif %}