File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 2
2
{% set release = salt[' grains.get' ](' lsb_distrib_codename' , ' yakkety' ) %}
3
3
{% set nginxver = salt[' pillar.get' ](' versions:nginx' ) %}
4
4
5
+ include:
6
+ - owasp-crs
7
+
5
8
NGINX Package Repository :
6
9
pkgrepo.managed :
7
10
- humanname: NGINX Package Repository
@@ -48,3 +51,5 @@ NGINX service:
48
51
- file: /etc/nginx/nginx.conf
49
52
- file: /etc/nginx/modsec/main.conf
50
53
- file: /etc/nginx/modsec/modsecurity.conf
54
+ - require:
55
+ - OWASP CRS patch from PR 995 apply
Original file line number Diff line number Diff line change @@ -10,3 +10,18 @@ Default crs-setup.conf:
10
10
- target: /etc/nginx/modsec/owasp-crs/crs-setup.conf.example
11
11
- require:
12
12
- OWASP CRS
13
+
14
+ OWASP CRS patch from PR 995 :
15
+ file.managed :
16
+ - name: /etc/nginx/modsec/owasp-crs/995.patch
17
+ - source: https://github.com/SpiderLabs/owasp-modsecurity-crs/pull/995.patch
18
+ - source_hash: 767bb6156ce286f9d17069905feeac5f
19
+ - require:
20
+ - OWASP CRS
21
+
22
+ OWASP CRS patch from PR 995 apply :
23
+ cmd.run :
24
+ - name: cd /etc/nginx/modsec/owasp-crs/ && patch -p1 < 995.patch && touch 995.patch.applied
25
+ - unless: test -e /etc/nginx/modsec/owasp-crs/995.patch.applied
26
+ - require:
27
+ - OWASP CRS
You can’t perform that action at this time.
0 commit comments