|
316 | 316 | }
|
317 | 317 |
|
318 | 318 | if $manage_security_crs {
|
319 |
| - # Template uses: |
320 |
| - # - $_secdefaultaction |
321 |
| - # - $critical_anomaly_score |
322 |
| - # - $error_anomaly_score |
323 |
| - # - $warning_anomaly_score |
324 |
| - # - $notice_anomaly_score |
325 |
| - # - $inbound_anomaly_threshold |
326 |
| - # - $outbound_anomaly_threshold |
327 |
| - # - $paranoia_level |
328 |
| - # - $executing_paranoia_level |
329 |
| - # - $allowed_methods |
330 |
| - # - $content_types |
331 |
| - # - $restricted_extensions |
332 |
| - # - $restricted_headers |
333 |
| - # - $secrequestmaxnumargs |
334 |
| - # - $enable_dos_protection |
335 |
| - # - $dos_burst_time_slice |
336 |
| - # - $dos_counter_threshold |
337 |
| - # - $dos_block_timeout |
338 | 319 | $security_crs_parameters = {
|
339 |
| - '_secdefaultaction' => $_secdefaultaction, |
340 |
| - 'critical_anomaly_score' => $critical_anomaly_score, |
341 |
| - 'error_anomaly_score' => $error_anomaly_score, |
342 |
| - 'warning_anomaly_score' => $warning_anomaly_score, |
343 |
| - 'notice_anomaly_score' => $notice_anomaly_score, |
344 |
| - 'inbound_anomaly_threshold' => $inbound_anomaly_threshold, |
345 |
| - 'outbound_anomaly_threshold' => $outbound_anomaly_threshold, |
346 |
| - 'secrequestmaxnumargs' => $secrequestmaxnumargs, |
347 |
| - 'allowed_methods' => $allowed_methods, |
348 |
| - 'content_types' => $content_types, |
349 |
| - 'restricted_extensions' => $restricted_extensions, |
350 |
| - 'restricted_headers' => $restricted_headers, |
351 |
| - 'paranoia_level' => $paranoia_level, |
352 |
| - 'executing_paranoia_level' => $executing_paranoia_level, |
353 |
| - 'enable_dos_protection' => $enable_dos_protection, |
354 |
| - 'dos_burst_time_slice' => $dos_burst_time_slice, |
355 |
| - 'dos_counter_threshold' => $dos_counter_threshold, |
356 |
| - 'dos_block_timeout' => $dos_block_timeout, |
| 320 | + '_secdefaultaction' => $_secdefaultaction, |
| 321 | + 'critical_anomaly_score' => $critical_anomaly_score, |
| 322 | + 'error_anomaly_score' => $error_anomaly_score, |
| 323 | + 'warning_anomaly_score' => $warning_anomaly_score, |
| 324 | + 'notice_anomaly_score' => $notice_anomaly_score, |
| 325 | + 'inbound_anomaly_threshold' => $inbound_anomaly_threshold, |
| 326 | + 'outbound_anomaly_threshold' => $outbound_anomaly_threshold, |
| 327 | + 'secrequestmaxnumargs' => $secrequestmaxnumargs, |
| 328 | + 'allowed_methods' => $allowed_methods, |
| 329 | + 'content_types' => $content_types, |
| 330 | + 'restricted_extensions' => $restricted_extensions, |
| 331 | + 'restricted_headers' => $restricted_headers, |
| 332 | + 'paranoia_level' => $paranoia_level, |
| 333 | + 'executing_paranoia_level' => $executing_paranoia_level, |
| 334 | + 'enable_dos_protection' => $enable_dos_protection, |
| 335 | + 'dos_burst_time_slice' => $dos_burst_time_slice, |
| 336 | + 'dos_counter_threshold' => $dos_counter_threshold, |
| 337 | + 'dos_block_timeout' => $dos_block_timeout, |
357 | 338 | }
|
358 | 339 |
|
359 | 340 | file { "${modsec_dir}/security_crs.conf":
|
360 | 341 | ensure => file,
|
361 |
| - content => template('apache/mod/security_crs.conf.erb'), |
| 342 | + content => epp('apache/mod/security_crs.conf.epp', $security_crs_parameters), |
362 | 343 | require => File[$modsec_dir],
|
363 | 344 | notify => Class['apache::service'],
|
364 | 345 | }
|
|
0 commit comments