2015-12-14 15:44:59 +01:00
|
|
|
{% 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
|
2018-11-09 00:25:52 +01:00
|
|
|
- require_in:
|
|
|
|
- module: apache-restart
|
|
|
|
- module: apache-reload
|
|
|
|
- service: apache
|
2015-12-14 15:44:59 +01:00
|
|
|
|
2015-12-16 14:42:59 +01:00
|
|
|
{% endif %}
|