2016-09-27 00:56:52 +02:00
|
|
|
{% from "apache/map.jinja" import apache with context %}
|
|
|
|
|
2016-04-07 11:58:42 +02:00
|
|
|
{% if grains['os_family']=="Debian" %}
|
|
|
|
|
|
|
|
include:
|
|
|
|
- apache
|
|
|
|
|
|
|
|
a2enmod mod_ssl:
|
|
|
|
cmd.run:
|
|
|
|
- name: a2enmod ssl
|
|
|
|
- unless: ls /etc/apache2/mods-enabled/ssl.load
|
|
|
|
- order: 225
|
|
|
|
- require:
|
|
|
|
- pkg: apache
|
|
|
|
- watch_in:
|
|
|
|
- module: apache-restart
|
|
|
|
|
2016-05-18 10:07:24 +02:00
|
|
|
{% elif grains['os_family']=="RedHat" %}
|
|
|
|
|
|
|
|
mod_ssl:
|
|
|
|
pkg.installed:
|
|
|
|
- require:
|
|
|
|
- pkg: apache
|
|
|
|
- watch_in:
|
|
|
|
- module: apache-restart
|
|
|
|
|
2016-09-27 00:56:52 +02:00
|
|
|
{% elif grains['os_family']=="FreeBSD" %}
|
|
|
|
|
|
|
|
include:
|
|
|
|
- apache
|
|
|
|
- apache.mod_socache_shmcb
|
|
|
|
|
|
|
|
{{ apache.modulesdir }}/010_mod_ssl.conf:
|
|
|
|
file.managed:
|
|
|
|
- source: salt://apache/files/{{ salt['grains.get']('os_family') }}/mod_ssl.conf.jinja
|
|
|
|
- mode: 644
|
|
|
|
- template: jinja
|
|
|
|
- require:
|
|
|
|
- pkg: apache
|
|
|
|
- watch_in:
|
|
|
|
- module: apache-restart
|
|
|
|
|
2016-04-07 11:58:42 +02:00
|
|
|
{% endif %}
|