This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
forked from chef-boneyard/chef-client
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.kitchen.yml
144 lines (127 loc) · 3.78 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
---
driver_plugin: vagrant
driver_config:
require_chef_omnibus: true
platforms:
- name: ubuntu-12.04
driver_config:
box: opscode-ubuntu-12.04
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box
run_list:
- recipe[apt]
- name: ubuntu-10.04
driver_config:
box: opscode-ubuntu-10.04
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_provisionerless.box
run_list:
- recipe[apt]
- name: centos-6.4
driver_config:
box: opscode-centos-6.4
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box
- name: centos-5.9
driver_config:
box: opscode-centos-5.9
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-5.9_provisionerless.box
suites:
# This suite tests that the configuration is applied correctly (via attributes)
- name: config
run_list:
- recipe[minitest-handler]
- recipe[chef-client_test::config]
- recipe[chef-client::config]
attributes:
chef_client:
load_gems:
chef-handler-updated-resources:
require_name: "chef/handler/updated_resources"
config:
log_level: ":debug"
ssl_verify_mode: ":verify_peer"
start_handlers: [{class: "SimpleReport::UpdatedResources", arguments: []}]
report_handlers: [{class: "SimpleReport::UpdatedResources", arguments: []}]
exception_handlers: [{class: "SimpleReport::UpdatedResources", arguments: []}]
ohai:
disabled_plugins: ["passwd"]
- name: service_init
run_list:
- recipe[minitest-handler]
- recipe[chef-client::config]
- recipe[chef-client_test::service_init]
- recipe[chef-client::init_service]
attributes: {}
- name: service_runit
run_list:
- recipe[minitest-handler]
- recipe[runit]
- recipe[chef-client_test::service_runit]
- recipe[chef-client::runit_service]
attributes: {}
- name: service_upstart
run_list:
- recipe[minitest-handler]
- recipe[chef-client_test::service_upstart]
- recipe[chef-client::upstart_service]
excludes: ["centos-5.9", "centos-6.4"]
attributes: {}
- name: cron
run_list:
- recipe[chef-client::cron]
attributes: {}
- name: delete_validation
run_list:
- recipe[chef-client::delete_validation]
attributes: {}
# Probably needs to be moved up to config and tested there
- name: cook-2092
run_list:
- recipe[minitest-handler]
- recipe[chef-client_test::cook-2092]
- recipe[chef-client::config]
attributes:
chef_client:
log_file: "client.log"
# Tests that the root user is set correctly for the cron recipe.
- name: cook-2169-root
run_list:
- recipe[minitest-handler]
- recipe[chef-client_test::cook-2169-root]
- recipe[chef-client::cron]
attributes: {}
# Tests that the "chef server" user is set correctly with the cron recipe.
- name: cook-2169-chef
run_list:
- recipe[minitest-handler]
- recipe[chef-client_test::cook-2169-chef]
- recipe[chef-client::cron]
attributes: {}
# Test that the environment variables are rendered correctly
- name: cook-2086
run_list:
- recipe[minitest-handler]
- recipe[chef-client_test::cook-2086]
- recipe[chef-client::cron]
attributes:
chef_client:
cron:
environment_variables: "FOO=BAR"
# No longer necessary w/ COOK-2856
# - name: cook-2317
# run_list:
# - recipe[minitest-handler]
# - recipe[chef-client::config]
# - recipe[chef-client_test::cook-2317]
# attributes:
# ohai:
# disabled_plugins: ["passwd"]
# Test that the running process includes command-line "daemon" options
- name: cook-1951
run_list:
- recipe[minitest-handler]
- recipe[chef-client::config]
- recipe[chef-client::service]
- recipe[chef-client_test::cook-1951]
attributes:
chef_client:
init_style: "init"
daemon_options: ["-E cook-1951"]