Skip to content

Commit

Permalink
Add SCA configuration for Amazon-Linux-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose M committed Jun 24, 2019
1 parent 01da56b commit 823eeec
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions templates/fragments/_sca.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%- if @kernel == 'Linux' -%>
<%- if @os_family == 'centos' -%>
<%- if @apply_template_os == 'centos' -%>
<sca>
<enabled>yes</enabled>
<scan_on_start>yes</scan_on_start>
Expand All @@ -13,13 +13,26 @@
<policy>system_audit_pw.yml</policy>
</policies>
</sca>
<%- else -%>
<%- elsif @apply_template_os =='amazon' -%>
<sca>
<enabled>yes</enabled>
<scan_on_start>yes</scan_on_start>
<interval>12h</interval>
<skip_nfs>yes</skip_nfs>

<policies>
<policy>system_audit_rcl.yml</policy>
<policy>system_audit_ssh.yml</policy>
<policy>system_audit_pw.yml</policy>
</policies>
</sca>
<%- else -%>
<sca>
<enabled>yes</enabled>
<scan_on_start>yes</scan_on_start>
<interval>12h</interval>
<skip_nfs>yes</skip_nfs>

<policies>
<policy>cis_debian_linux_rcl.yml</policy>
<policy>system_audit_rcl.yml</policy>
Expand Down

0 comments on commit 823eeec

Please sign in to comment.