Browse Source

basic fixes

tags/v1.2.1
Imran Iqbal 3 years ago
parent
commit
8682dff6dc
No account linked to committer's email address
3 changed files with 6 additions and 4 deletions
  1. +4
    -2
      apache/config/modules/mod_security/rules.sls
  2. +1
    -1
      apache/config/modules/mod_upload_progress.sls
  3. +1
    -1
      pillar.example

+ 4
- 2
apache/config/modules/mod_security/rules.sls View File

@@ -1,9 +1,11 @@
{%- set apache = pillar.get('apache', {}) %}
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import apache with context %}
{#- set apache = pillar.get('apache', {}) #}
{%- set mod_security = apache.get('mod_security', {}) %}
{%- if mod_security.get('manage_config', False) %}

include:
- apache.mod_security
- apache.config.modules.mod_security

{%- for rule_name, rule_details in mod_security.get('rules', {}).items() %}
{%- set rule_set = rule_details.get('rule_set', '') %}

+ 1
- 1
apache/config/modules/mod_upload_progress.sls View File

@@ -13,7 +13,7 @@ include:
- {{ sls_package_install }}

apache-config-modules-upload_progress-pkg:
pkg.installed
pkg.installed:
- name: {{ apache.mod_upload_progress }}
cmd.run:
- name: a2enmod upload_progress

+ 1
- 1
pillar.example View File

@@ -464,7 +464,7 @@ apache:
sec_debug_log_level: '3'

rules:
enabled: ~
# enabled: ~
modsecurity_crs_10_setup.conf:
rule_set: ''
enabled: true

Loading…
Cancel
Save