FreeBSD: apache.mod_proxy_http

This commit is contained in:
Alexander Weidinger 2017-01-08 21:54:14 +01:00
parent 0590e43973
commit e1c55b9475
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{% from "apache/map.jinja" import apache with context %}
LoadModule proxy_http_module libexec/{{ apache.service }}/mod_proxy_http.so

View File

@ -1,3 +1,5 @@
{% from "apache/map.jinja" import apache with context %}
{% if grains['os_family']=="Debian" %} {% if grains['os_family']=="Debian" %}
include: include:
@ -14,4 +16,15 @@ a2enmod proxy_http:
- watch_in: - watch_in:
- module: apache-restart - 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 %} {% endif %}