forked from dev-sec/chef-os-hardening
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
68 lines (64 loc) · 1.25 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
---
driver:
name: vagrant
platforms:
- name: ubuntu-16-04
driver_config:
box: bento/ubuntu-16.04
- name: ubuntu-18-04
driver_config:
box: bento/ubuntu-18.04
- name: centos-6
- name: centos-7
- name: centos-8
- name: oracle-6
- name: oracle-7
- name: debian-9
- name: debian-10
- name: fedora-28
- name: fedora-29
- name: opensuse-leap-42
- 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 %>
chef_license: accept
verifier:
name: inspec
chef_license: accept
suites:
- name: default
run_list:
- recipe[test]
- recipe[os-hardening::default]
- name: modules_disabled
run_list:
- recipe[test]
- 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[test]
- recipe[os-hardening::default]
includes:
- centos-7
attributes:
os-hardening:
security:
selinux_mode: enforcing