Browse Source

Merge pull request #15 from bechtoldt/add_proxy_module_support

Adding mod_proxy and mod_proxy_http states
tags/v0.37.4
Seth House 11 years ago
parent
commit
ad541eb5bf
3 changed files with 44 additions and 0 deletions
  1. +10
    -0
      README.rst
  2. +16
    -0
      apache/mod_proxy.sls
  3. +18
    -0
      apache/mod_proxy_http.sls

+ 10
- 0
README.rst View File



Installs the Apache package and starts the service. Installs the Apache package and starts the service.


``apache.mod_proxy``
-------------------

Enables the Apache module mod_proxy.

``apache.mod_proxy_http``
-------------------

Enables the Apache module mod_proxy_http and requires the Apache module mod_proxy to be enabled.

``apache.mod_wsgi`` ``apache.mod_wsgi``
------------------- -------------------



+ 16
- 0
apache/mod_proxy.sls View File

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

include:
- apt
- apache

a2enmod proxy:
cmd.run:
- unless: ls /etc/apache2/mods-enabled/proxy.load
- order: 225
- require:
- pkg: apache
- watch_in:
- module: apache-restart

{% endif %}

+ 18
- 0
apache/mod_proxy_http.sls View File

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

include:
- apt
- apache
- apache.mod_proxy

a2enmod proxy_http:
cmd.run:
- unless: ls /etc/apache2/mods-enabled/proxy_http.load
- order: 225
- require:
- pkg: apache
- cmd: a2enmod proxy
- watch_in:
- module: apache-restart

{% endif %}

Loading…
Cancel
Save