-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
83 lines (78 loc) · 2.04 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
82
83
---
driver:
name: docker
privileged: true
use_sudo: false
platforms:
- name: centos-7
driver_config:
require_chef_omnibus: "13"
image: centos/systemd
run_command: /usr/sbin/init
privileged: true
provision_command:
- sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
- systemctl enable sshd.service
- yum install epel-release -y
- yum update yum ca-certificates -y
- curl -LO https://omnitruck.chef.io/install.sh && sudo bash ./install.sh -v 13 && rm install.sh
- name: centos-7-with-nginx
driver_config:
require_chef_omnibus: "13"
image: centos/systemd
run_command: /usr/sbin/init
privileged: true
provision_command:
- yum install epel-release -y
- yum install nginx -y
- yum update yum ca-certificates -y
- chkconfig nginx on
- curl -LO https://omnitruck.chef.io/install.sh && sudo bash ./install.sh -v 13 && rm install.sh
provisioner:
name: chef_solo
verifier:
name: inspec
suites:
- name: varnish
attributes:
varnish:
listen_port: 80
run_list:
- varnish-centos
verifier:
inspec_tests:
- tests/varnish.rb
- tests/listening_on_port_80_varnish.rb
- name: varnish-881
attributes:
varnish:
listen_port: 881
run_list:
- varnish-centos
verifier:
inspec_tests:
- tests/varnish.rb
- tests/listening_on_port_881_varnish.rb
- name: varnish-881-with-backend
attributes:
varnish:
listen_port: 881
run_list:
- varnish-centos
verifier:
inspec_tests:
- tests/varnish.rb
- tests/listening_on_port_881_varnish.rb
- tests/varnish-with-backend.rb
- name: varnish5-881-with-backend
attributes:
varnish:
version: 52
listen_port: 881
run_list:
- varnish-centos
verifier:
inspec_tests:
- tests/varnish.rb
- tests/listening_on_port_881_varnish.rb
- tests/varnish-with-backend.rb