forked from chef-boneyard/chef-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
116 lines (101 loc) · 2.75 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
115
116
driver:
name: vagrant
customize:
memory: 1024
cpus: 2
provisioner:
name: chef_zero
platforms:
- name: centos-5.11
- name: centos-6.7
- name: centos-7.2
- name: debian-7.10
- name: debian-8.4
- name: fedora-23
- name: freebsd-9.3
- name: freebsd-10.2
- name: ubuntu-12.04
- name: ubuntu-14.04
- name: ubuntu-14.04-chef-11
driver_config:
box: bento/ubuntu-14.04
provisioner:
require_chef_omnibus: 11.18.6
- name: ubuntu-16.04
- 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.2"]
- name: service_init
run_list:
- recipe[chef-client::config]
- recipe[chef-client::init_service]
includes: ["centos-5.11", "centos-6.7", "debian-7.9", "ubuntu-12.04", "ubuntu-14.04"]
- name: service_runit
run_list:
- recipe[runit]
- recipe[chef-client::runit_service]
includes: ["ubuntu-12.04", "ubuntu-14.04", "debian-7.9", "debian-8.2"]
- name: service_systemd
run_list:
- recipe[chef-client::systemd_service]
includes: ["centos-7.2", "debian-8.2", "fedora-23", "ubuntu-16.04"]
- 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
excludes: ["ubuntu-14.04-chef-11"]
- 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.2", "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"]