Browse Source

FreeBSD: apache.mod_proxy_http

master
Alexander Weidinger 8 years ago
parent
commit
e1c55b9475
2 changed files with 16 additions and 0 deletions
  1. +3
    -0
      apache/files/FreeBSD/mod_proxy_http.conf.jinja
  2. +13
    -0
      apache/mod_proxy_http.sls

+ 3
- 0
apache/files/FreeBSD/mod_proxy_http.conf.jinja View File

{% from "apache/map.jinja" import apache with context %}

LoadModule proxy_http_module libexec/{{ apache.service }}/mod_proxy_http.so

+ 13
- 0
apache/mod_proxy_http.sls View File

{% from "apache/map.jinja" import apache with context %}

{% if grains['os_family']=="Debian" %} {% if grains['os_family']=="Debian" %}


include: include:
- 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 %}

Loading…
Cancel
Save