adding mod_proxy and mod_proxy_http states, updating the README doc

This commit is contained in:
Arnold Bechtoldt 2014-01-04 19:29:22 +01:00
parent b118690c53
commit b45a5f4fc4
3 changed files with 44 additions and 0 deletions

View File

@ -20,6 +20,16 @@ Available states
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``
-------------------

16
apache/mod_proxy.sls Normal file
View File

@ -0,0 +1,16 @@
{% 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:
- cmd: apache-restart
{% endif %}

18
apache/mod_proxy_http.sls Normal file
View File

@ -0,0 +1,18 @@
{% 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:
- cmd: apache-restart
{% endif %}