-
Notifications
You must be signed in to change notification settings - Fork 2
/
goss.yml
106 lines (99 loc) · 2.86 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
gossfile:
# Test if reboot requires
prereq_check/*.yml: {}
# Section 1 Account and Password
{{ if .Vars.win2016cis_section_1 }}
{{ if .Vars.is_standalone }}
standalone_checks/section_1/cis_1.1/*.yml: {}
standalone_checks/section_1/cis_1.2/*.yml: {}
{{ end}}
{{ if not .Vars.is_standalone }}
section_1/cis_1.1/*.yml: {}
section_1/cis_1.2/*.yml: {}
{{ end}}
{{ end }}
# Section 2 Local Policies
{{ if .Vars.win2016cis_section_2 }}
{{ if .Vars.is_standalone }}
standalone_checks/section_2/cis_2.2/*.yml: {}
standalone_checks/section_2/cis_2.3/*.yml: {}
{{ end }}
{{ if not .Vars.is_standalone }}
section_2/cis_2.2/*.yml: {}
section_2/cis_2.3/*.yml: {}
{{ end }}
{{ end }}
# Section 9 - Firewalls
{{ if .Vars.win2016cis_section_9 }}
# Domain Firewall
{{ if .Vars.win2016_use_domain_firewall }}
{{ if .Vars.is_standalone }}
standalone_checks/section_9/cis_9.1/*.yml: {}
{{ end }}
{{ if not .Vars.is_standalone }}
section_9/cis_9.1/*.yml: {}
{{ end }}
{{ end }}
# Private Firewall
{{ if .Vars.win2016_use_private_firewall }}
{{ if .Vars.is_standalone }}
standalone_checks/section_9/cis_9.2/*.yml: {}
{{ end }}
{{ if not .Vars.is_standalone }}
section_9/cis_9.2/*.yml: {}
{{ end }}
{{ end }}
# Public Firewall
{{ if .Vars.win2016_use_public_firewall }}
{{ if .Vars.is_standalone }}
standalone_checks/section_9/cis_9.3/*.yml: {}
{{ end }}
{{ if not .Vars.is_standalone }}
section_9/cis_9.3/*.yml: {}
{{ end }}
{{ end }}
{{ end }}
# Section 17
{{ if .Vars.win2016cis_section_17 }}
{{ if .Vars.is_standalone }}
standalone_checks/section_17/cis_*/*.yml: {}
{{ end }}
{{ if not .Vars.is_standalone }}
section_17/cis_*/*.yml: {}
{{ end }}
{{ end }}
# Section 18
{{ if .Vars.win2016cis_section_18 }}
{{ if .Vars.is_standalone }}
standalone_checks/section_18/cis_*/*.yml: {}
{{ end }}
{{ if not .Vars.is_standalone }}
section_18/cis_*/*.yml: {}
{{ end }}
{{ end }}
# Section 19
{{ if .Vars.win2016cis_section_19 }}
{{ if .Vars.is_standalone }}
standalone_checks/section_19/cis_*/*.yml: {}
{{ end }}
{{ if not .Vars.is_standalone }}
section_19/cis_*/*.yml: {}
{{ end }}
{{ end }}
command:
output_meta:
title: Benchmark MetaData
exec: echo BenchMark MetaData
exit-status: 0
meta:
benchmark_type: {{ .Vars.benchmark_type }}
benchmark_version: {{ .Vars.benchmark_version }}
benchmark_os: {{ .Vars.benchmark_os }}
host_epoch: {{ .Vars.epoch }}
host_os_release: {{ .Vars.os_release }}
host_hostname: {{ .Vars.os_hostname }}
host_machine_uuid: {{ .Vars.machine_uuid }}
host_os_locale: {{ .Vars.os_locale }}
host_automation_group: {{ .Vars.auto_group }}
host_os_distribution: "Microsoft Windows"
host_system_type: Server