-
Notifications
You must be signed in to change notification settings - Fork 12
/
goss.yml
60 lines (59 loc) · 1.75 KB
/
goss.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
gossfile:
{{ if .Vars.rhel9cis_section1 }}
section_1/*/*.yml: {}
{{ end }}
{{ if .Vars.rhel9cis_section2 }}
section_2/*/*.yml: {}
{{ end }}
{{ if .Vars.rhel9cis_section3 }}
section_3/cis_3.1/*.yml: {}
section_3/cis_3.2/*.yml: {}
section_3/cis_3.3/*.yml: {}
## firewall configurations
{{ if eq .Vars.rhel9cis_firewall "firewalld" }}
section_3/cis_3.4.1/*.yml: {}
{{ end }}
{{ if eq .Vars.rhel9cis_firewall "nftables" }}
section_3/cis_3.4.2/*.yml: {}
{{ end }}
{{ end }}
{{ if .Vars.rhel9cis_section4 }}
# Auditd and level 2
{{ if .Vars.rhel9cis_level_2 }}
section_4/cis_4.1.1/*.yml: {}
section_4/cis_4.1.2/*.yml: {}
section_4/cis_4.1.3/*.yml: {}
section_4/cis_4.1.4/*.yml: {}
{{ end }}
{{ if eq .Vars.rhel9cis_syslog "rsyslog" }}
section_4/cis_4.2.1/*.yml: {}
{{ end }}
{{ if eq .Vars.rhel9cis_syslog "journald" }}
section_4/cis_4.2.2/*.yml: {}
{{ end }}
section_4/cis_4.2.3/*.yml: {}
section_4/cis_4.3/*.yml: {}
{{ end }}
{{ if .Vars.rhel9cis_section5 }}
section_5/*/*.yml: {}
{{ end }}
{{ if .Vars.rhel9cis_section6 }}
section_6/*/*.yml: {}
{{ end }}
command:
benchmark_meta:
title: Benchmark MetaData
exec: echo BenchMark MetaData
exit-status: 0
meta:
host_machine_uuid: {{ .Vars.machine_uuid }}
host_epoch: {{ .Vars.epoch }}
host_os_locale: {{ .Vars.os_locale }}
host_os_release: {{ .Vars.os_release }}
host_os_distribution: {{ .Vars.os_distribution }}
host_automation_group: {{ .Vars.auto_group }}
host_hostname: {{ .Vars.os_hostname }}
host_system_type: {{ .Vars.system_type }}
benchmark_type: {{ .Vars.benchmark_type }}
benchmark_version: {{ .Vars.benchmark_version }}
benchmark_os: {{ .Vars.benchmark_os }}