apache-formula/apache/own_default_vhost.sls
Alexander Kozlov f7940ecdc1 Added ability to replace default vhost with own version
Added example shows 503 code instead of "It works!" page.
2015-12-14 17:44:59 +03:00

17 lines
410 B
Plaintext

{% if grains['os_family']=="Debian" %}
{% from "apache/map.jinja" import apache with context %}
include:
- apache
apache_own-default-vhost:
file.managed:
- name: {{ apache.vhostdir }}/000-default.conf
- source: salt://apache/files/{{ salt['grains.get']('os_family') }}/sites-available/000-default.conf
- require:
- pkg: apache
- watch_in:
- module: apache-reload
{% endif %}