-
Notifications
You must be signed in to change notification settings - Fork 20
/
.kitchen.docker.yml
105 lines (92 loc) · 2.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
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
---
driver:
name: docker
use_sudo: false
privileged: true
provisioner:
name: chef_zero
data_bags_path: test/fixtures/data_bags
require_chef_omnibus: 12
platforms:
- name: ubuntu-14.04
driver_config:
image: ubuntu-upstart:14.04
forward:
- 8081:80
disable_upstart: false
run_command: '/sbin/init'
provision_command:
# Source for snmp-mibs-downloader package
- echo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' >> /etc/apt/sources.list
# Netstat for Inspec
- apt-get update && apt-get install -y net-tools
- name: ubuntu-16.04
driver_config:
image: ubuntu:16.04
forward:
- 8082:80
run_command: '/sbin/init'
provision_command:
# For systemd
- systemctl set-default multi-user.target
# Netstat for Inspec
- apt-get install -y net-tools
- name: centos-7
driver_config:
image: centos:7
forward:
- 8083:80
run_command: '/usr/sbin/init'
provision_command:
# Install package's docs
# For zabbix init db sql files
- sed -i 's/^tsflags/#tsflags/' /etc/yum.conf
# For nginx package
- yum -y install openssl openssl-devel
# Netstat for Inspec
- yum -y install net-tools
verifier:
name: inspec
inspec_tests:
- path: test/integration/inspec
suites:
- name: zabbix24-mysql
run_list:
- recipe[zabbix_lwrp_test::zabbix24_mysql]
excludes:
- ubuntu-16.04
verifier:
attributes:
db: mysql
- name: zabbix24-postgresql
run_list:
- recipe[zabbix_lwrp_test::zabbix24_postgresql]
excludes:
- ubuntu-16.04
verifier:
attributes:
db: postgresql
- name: zabbix30-mysql
run_list:
- recipe[zabbix_lwrp_test::zabbix30_mysql]
verifier:
attributes:
db: mysql
- name: zabbix30-postgresql
run_list:
- recipe[zabbix_lwrp_test::zabbix30_postgresql]
verifier:
attributes:
db: postgresql
- name: zabbix32-mysql
run_list:
- recipe[zabbix_lwrp_test::zabbix32_mysql]
verifier:
attributes:
db: mysql
- name: zabbix32-postgresql
run_list:
- recipe[zabbix_lwrp_test::zabbix32_postgresql]
verifier:
attributes:
db: postgresql