forked from chef-boneyard/chef-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
114 lines (98 loc) · 2.6 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
driver:
name: vagrant
customize:
memory: 1024
cpus: 2
provisioner:
name: chef_zero
verifier:
name: inspec
platforms:
- name: centos-5.11
- name: centos-6.7
- name: centos-7.2
- name: debian-7.11
- name: debian-8.5
- name: fedora-23
- name: freebsd-9.3
- name: freebsd-10.3
- name: ubuntu-12.04
- name: ubuntu-14.04
- name: ubuntu-16.04
- name: opensuse-13.2
- name: windows-2008r2
driver_config:
box: chef/windows-server-2008r2-standard # private box
- name: windows-2012r2
driver_config:
box: chef/windows-server-2012r2-standard # private box
suites:
- name: service_bsd
run_list:
- recipe[chef-client::config]
- recipe[chef-client::bsd_service]
includes: ["freebsd-9.3", "freebsd-10.3"]
- name: service_init
run_list:
- recipe[chef-client::config]
- recipe[chef-client::init_service]
includes: ["centos-5.11", "centos-6.7", "debian-7.11"]
- name: service_runit
run_list:
- recipe[runit]
- recipe[chef-client::runit_service]
includes: ["centos-5.11", "centos-6.7", "debian-7.11"]
- name: service_systemd
run_list:
- recipe[chef-client::systemd_service]
includes: ["centos-7.2", "debian-8.5", "fedora-23", "ubuntu-16.04", "opensuse-13.2"]
- name: service_upstart
run_list:
- recipe[chef-client::upstart_service]
includes: ["ubuntu-12.04", "ubuntu-14.04"]
- name: cron
run_list:
- recipe[cron::default]
- recipe[chef-client::cron]
excludes: ["windows-2008r2", "windows-2012r2"]
- name: config
run_list:
- recipe[chef-client::config]
attributes:
ohai:
disabled_plugins:
- Mdadm
- name: delete_validation
run_list:
- recipe[chef-client::delete_validation]
# Test that the we can use the cron_d directory
- name: cook-use_cron_d
run_list:
- recipe[cron::default]
- recipe[chef-client::cron]
attributes:
chef_client:
cron:
use_cron_d: true
excludes: ["windows-2008r2", "windows-2012r2"]
# Test that the running process includes command-line "daemon" options
- name: cook-1951
run_list:
- recipe[chef-client::config]
- recipe[chef-client::service]
attributes:
chef_client:
init_style: "init"
daemon_options: ["-E cook-1951"]
excludes: ["freebsd-9.3", "freebsd-10.3", "windows-2008r2", "windows-2012r2"]
# Testing when we are using chef-client on a Chef Server (12+ only)
- name: server
run_list:
- recipe[chef-server]
- recipe[chef-client::config]
- recipe[chef-client::service]
includes: ["ubuntu-12.04", "ubuntu-14.04", "centos-6.7", "centos-7.2"]
- name: task
run_list:
- recipe[chef-client::task]
includes: ["windows-2008r2", "windows-2012r2"]