Explorar el Código

Fix mod_remoteip for Red Hat family OS (#260)

The source template was missing for RH based systems, only the Debian
file was packaged.

Fix this.
tags/v0.37.4
Andreas Thienemann hace 5 años
padre
commit
0c1423f8f1
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  1. +6
    -0
      apache/files/RedHat/conf.modules.d/remoteip.conf.jinja
  2. +1
    -1
      apache/mod_remoteip.sls

+ 6
- 0
apache/files/RedHat/conf.modules.d/remoteip.conf.jinja Ver fichero

@@ -0,0 +1,6 @@
# managed by saltstack

RemoteIPHeader {{ salt['pillar.get']('apache:mod_remoteip:RemoteIPHeader', 'X-Forwarded-For') }}
{%- for trusted_proxy in salt['pillar.get']('apache:mod_remoteip:RemoteIPTrustedProxy', []) %}
RemoteIPTrustedProxy {{ trusted_proxy }}
{%- endfor %}

+ 1
- 1
apache/mod_remoteip.sls Ver fichero

@@ -54,7 +54,7 @@ include:
file.managed:
- template: jinja
- source:
- salt://apache/files/{{ salt['grains.get']('os_family') }}/remoteip.conf.jinja
- salt://apache/files/{{ salt['grains.get']('os_family') }}/conf.modules.d/remoteip.conf.jinja
- require:
- pkg: apache
- watch_in:

Cargando…
Cancelar
Guardar