forked from dev-sec/chef-os-hardening
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen.yml
81 lines (76 loc) · 1.52 KB
/
.kitchen.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
---
driver:
name: vagrant
platforms:
- name: ubuntu-14-04
driver_config:
box: bento/ubuntu-14.04
- name: ubuntu-16-04
driver_config:
box: bento/ubuntu-16.04
- name: centos-6
driver_config:
box: bento/centos-6.9
- name: centos-7
driver_config:
box: bento/centos-7.4
- name: oracle-6
driver_config:
box: bento/oracle-6.9
- name: oracle-7
driver_config:
box: bento/oracle-7.3
- name: debian-7
driver_config:
box: bento/debian-7.11
- name: debian-8
driver_config:
box: bento/debian-8.6
- name: fedora-26
driver_config:
box: bento/fedora-26
- name: fedora-27
driver_config:
box: bento/fedora-27
- name: opensuse-leap-42
driver_config:
box: bento/opensuse-leap-42.1
- name: amazonlinux-1
driver_config:
box: realreadme/amazon2016.09
- name: amazonlinux-2
driver_config:
box: stakahashi/amazonlinux2
provisioner:
name: chef_solo
<% if ENV['CHEF_VERSION'] %>
require_chef_omnibus: <%= ENV['CHEF_VERSION'] %>
<% end %>
verifier:
name: inspec
suites:
- name: default
run_list:
- recipe[os-hardening::default]
- name: modules_disabled
run_list:
- recipe[os-hardening::default]
attributes:
os-hardening:
security:
kernel:
enable_module_loading: false
verifier:
inspec_tests:
- path: test/integration/default
attributes:
kernel_modules_disabled: 1
- name: selinux_enabled
run_list:
- recipe[os-hardening::default]
includes:
- centos-7
attributes:
os-hardening:
security:
selinux_mode: enforcing