FreeBSD: mod_suexec
This commit is contained in:
parent
bc81c6ab43
commit
4e12b404a4
@ -109,6 +109,11 @@ Enables mod_socache_shmcb. (FreeBSD only)
|
|||||||
|
|
||||||
Installs and enables the mod_ssl module (Debian, RedHat and FreeBSD only)
|
Installs and enables the mod_ssl module (Debian, RedHat and FreeBSD only)
|
||||||
|
|
||||||
|
``mod_suexec``
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
Enables mod_suexec. (FreeBSD only)
|
||||||
|
|
||||||
``apache.mod_vhost_alias``
|
``apache.mod_vhost_alias``
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
3
apache/files/FreeBSD/mod_suexec.conf.jinja
Normal file
3
apache/files/FreeBSD/mod_suexec.conf.jinja
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{% from "apache/map.jinja" import apache with context %}
|
||||||
|
|
||||||
|
LoadModule suexec_module libexec/{{ apache.service }}/mod_suexec.so
|
18
apache/mod_suexec.sls
Normal file
18
apache/mod_suexec.sls
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{% from "apache/map.jinja" import apache with context %}
|
||||||
|
|
||||||
|
include:
|
||||||
|
- apache
|
||||||
|
|
||||||
|
{% if grains['os_family']=="FreeBSD" %}
|
||||||
|
|
||||||
|
{{ apache.modulesdir }}/040_mod_suexec.conf:
|
||||||
|
file.managed:
|
||||||
|
- source: salt://apache/files/{{ salt['grains.get']('os_family') }}/mod_suexec.conf.jinja
|
||||||
|
- mode: 644
|
||||||
|
- template: jinja
|
||||||
|
- require:
|
||||||
|
- pkg: apache
|
||||||
|
- watch_in:
|
||||||
|
- module: apache-restart
|
||||||
|
|
||||||
|
{% endif %}
|
Loading…
Reference in New Issue
Block a user