@@ -0,0 +1,3 @@ | |||
{% from "apache/map.jinja" import apache with context %} | |||
LoadModule proxy_http_module libexec/{{ apache.service }}/mod_proxy_http.so |
@@ -1,3 +1,5 @@ | |||
{% from "apache/map.jinja" import apache with context %} | |||
{% if grains['os_family']=="Debian" %} | |||
include: | |||
@@ -14,4 +16,15 @@ a2enmod proxy_http: | |||
- watch_in: | |||
- module: apache-restart | |||
{% elif grains['os_family']=="FreeBSD" %} | |||
{{ apache.modulesdir }}/040_mod_proxy_http.conf: | |||
file.managed: | |||
- source: salt://apache/files/{{ salt['grains.get']('os_family') }}/mod_proxy_http.conf.jinja | |||
- mode: 644 | |||
- template: jinja | |||
- require: | |||
- pkg: apache | |||
- watch_in: | |||
- module: apache-restart | |||
{% endif %} |