2014-10-01 10:35:53 +02:00
|
|
|
{% from "apache/map.jinja" import apache with context %}
|
|
|
|
|
2013-08-13 22:30:49 +02:00
|
|
|
{% if grains['os_family']=="Debian" %}
|
|
|
|
|
2013-07-30 18:42:02 +02:00
|
|
|
include:
|
2013-08-13 22:29:58 +02:00
|
|
|
- apache
|
2013-07-30 18:42:02 +02:00
|
|
|
- apache.register_site
|
|
|
|
|
2013-08-13 22:29:58 +02:00
|
|
|
extend:
|
|
|
|
apache:
|
|
|
|
pkg:
|
|
|
|
- order: 175
|
|
|
|
service:
|
|
|
|
- order: 455
|
2014-03-10 18:53:34 +01:00
|
|
|
apache-reload:
|
|
|
|
module:
|
|
|
|
- order: 420
|
|
|
|
apache-restart:
|
|
|
|
module:
|
|
|
|
- order: 425
|
2013-07-30 18:42:02 +02:00
|
|
|
|
2014-10-01 10:35:53 +02:00
|
|
|
a2dissite 000-default{{ apache.confext }}:
|
2013-07-30 18:42:02 +02:00
|
|
|
cmd.run:
|
2014-10-01 10:35:53 +02:00
|
|
|
- onlyif: test -f /etc/apache2/sites-enabled/000-default{{ apache.confext }}
|
2013-07-30 18:42:02 +02:00
|
|
|
- watch_in:
|
2014-01-04 12:59:39 +01:00
|
|
|
- module: apache-reload
|
2018-11-09 00:25:52 +01:00
|
|
|
- require_in:
|
|
|
|
- module: apache-restart
|
|
|
|
- module: apache-reload
|
|
|
|
- service: apache
|
2013-07-27 20:29:52 +02:00
|
|
|
- require:
|
2013-07-30 18:42:02 +02:00
|
|
|
- pkg: apache
|
|
|
|
|
2014-10-01 10:35:53 +02:00
|
|
|
/etc/apache2/sites-available/{{ apache.default_site }}:
|
2013-07-30 18:42:02 +02:00
|
|
|
file.absent:
|
|
|
|
- require:
|
|
|
|
- pkg: apache
|
|
|
|
|
2014-10-01 10:35:53 +02:00
|
|
|
/etc/apache2/sites-available/{{ apache.default_site_ssl }}:
|
2013-07-30 18:42:02 +02:00
|
|
|
file.absent:
|
|
|
|
- require:
|
|
|
|
- pkg: apache
|
|
|
|
|
2013-08-13 22:30:49 +02:00
|
|
|
{% endif %} #END: os = debian
|