-
Notifications
You must be signed in to change notification settings - Fork 8
/
kitchen.docker.yml
56 lines (51 loc) · 1.29 KB
/
kitchen.docker.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
---
driver:
name: docker
use_sudo: false
privileged: true
transport:
name: docker
provisioner:
name: ansible_playbook
hosts: all
require_ansible_repo: true
require_chef_for_busser: false
require_ruby_for_busser: false
galaxy_ignore_certs: true
roles_path: spec/ansible/nginx-hardening
requirements_path: spec/ansible/nginx-hardening/requirements.yml
additional_copy_path:
- spec/ansible/nginx-hardening/vars
extra_vars_file: /tmp/kitchen/vars/docker.vars.yml
verifier:
name: inspec
sudo: true
load_plugins: true
inspec_tests:
- path: .
platforms:
- name: ubuntu-18.04
driver:
image: ubuntu:bionic-20220128
provision_command:
- apt-get update
- apt-get install -y systemd-sysv vim nginx w3m w3m-img
- update-rc.d ssh defaults
- service ssh start
- update-rc.d nginx defaults
- service nginx start
suites:
- name: hardened
provisioner:
playbook: spec/ansible/nginx-hardening/hardening-playbook.yml
verifier:
reporter:
- cli
- json:spec/results/hardened-test-result.json
- name: vanilla
provisioner:
playbook: spec/ansible/nginx-hardening/vanilla-playbook.yml
verifier:
reporter:
- cli
- json:spec/results/vanilla-test-result.json