-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgoss.yml
69 lines (63 loc) · 1.79 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
61
62
63
64
65
66
67
68
69
gossfile:
{{ if .Vars.ubuntu18cis_section1 }}
section_1/*/*.yml: {}
{{ end }}
# Section 2
{{ if .Vars.ubuntu18cis_section2 }}
section_2/*/*.yml: {}
{{ end }}
# Section 3
{{ if .Vars.ubuntu18cis_section3 }}
section_3/cis_3.1/*.yml: {}
section_3/cis_3.2/*.yml: {}
{{ if .Vars.ubuntu18cis_ipv6_required }}
section_3/cis_3.3/ipv6/*.yml: {}
{{ end }}
# If ufw firewall
{{ if eq .Vars.ubuntu18cis_firewall "ufw" }}
section_3/cis_3.5.1/*.yml: {}
{{ end }}
# If nftables firewall
{{ if eq .Vars.ubuntu18cis_firewall "nftables" }}
section_3/cis_3.5.2/*.yml: {}
{{ end }}
# If iptables firewall
{{ if eq .Vars.ubuntu18cis_firewall "iptables" }}
section_3/cis_3.5.3/*.yml: {}
{{ end }}
{{ end }}
# Section 4
{{ if .Vars.ubuntu18cis_section4 }}
# Auditd and level 2
{{ if .Vars.ubuntu18cis_level_2 }}
{{ if .Vars.ubuntu18cis_auditd }}
section_4/cis_4.1/*.yml: {}
{{ end }}
{{ end }}
section_4/cis_4.2/*.yml: {}
{{ end }}
# Section 5
{{ if .Vars.ubuntu18cis_section5 }}
section_5/*/*.yml: {}
{{ end }}
# Section 6
{{ if .Vars.ubuntu18cis_section6 }}
section_6/*/*.yml: {}
{{ end }}
# Metadata
command:
benchmark_meta:
title: Benchmark MetaData
exec: echo BenchMark MetaData
exit-status: 0
meta:
benchmark_machine_uuid: {{ .Vars.machine_uuid }}
benchmark_epoch: {{ .Vars.epoch }}
benchmark_os_locale: {{ .Vars.os_locale }}
benchmark_os_release: {{ .Vars.os_release }}
benchmark_type: {{ .Vars.benchmark }}
benchmark_os_distribution: {{ .Vars.os_distribution }}
benchmark_automation_group: {{ .Vars.auto_group }}
benchmark_hostname: {{ .Vars.os_hostname }}
benchmark_version: {{ .Vars.benchmark_version }}
benchmark_system_type: {{ .Vars.system_type }}