This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
forked from chef-boneyard/chef-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen.cloud.yml
179 lines (156 loc) · 4.45 KB
/
.kitchen.cloud.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
---
driver_config:
digitalocean_client_id: <%= ENV['DIGITAL_OCEAN_CLIENT_ID'] %>
digitalocean_access_token: <%= ENV['DIGITAL_OCEAN_ACCESS_TOKEN'] %>
aws_access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
aws_secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
aws_ssh_key_id: <%= ENV['AWS_KEYPAIR_NAME'] %>
availability_zone: <%= ENV['AWS_AVAILABILITY_ZONE'] %>
provisioner:
name: chef_zero
require_chef_omnibus: latest
platforms:
- name: centos-5.8
driver_plugin: digitalocean
driver_config:
size: 1gb
image: centos-5-8-x64
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
- name: centos-6.5
driver_plugin: digitalocean
driver_config:
size: 1gb
image: centos-6-5-x64
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
- name: centos-7.0
driver_plugin: digitalocean
driver_config:
size: 1gb
image: centos-7-0-x64
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
- name: amazon-2013.09
driver_plugin: ec2
driver_config:
image_id: ami-e9a18d80
username: ec2-user
ssh_key: <%= ENV['EC2_SSH_KEY_PATH'] %>
flavor_id: t2.small
- name: amazon-2014.03
driver_plugin: ec2
driver_config:
image_id: ami-76817c1e
username: ec2-user
ssh_key: <%= ENV['EC2_SSH_KEY_PATH'] %>
flavor_id: t2.small
- name: amazon-2014.09
driver_plugin: ec2
driver_config:
image_id: ami-fccc6d94
username: ec2-user
ssh_key: <%= ENV['EC2_SSH_KEY_PATH'] %>
flavor_id: t2.small
- name: suse-11.3
driver_plugin: ec2
driver_config:
image_id: ami-96b117fe
username: root
ssh_key: <%= ENV['EC2_SSH_KEY_PATH'] %>
flavor_id: t2.small
- name: fedora-20
driver_plugin: digitalocean
driver_config:
size: 1gb
image: fedora-20-x64
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
- name: fedora-21
driver_plugin: digitalocean
driver_config:
size: 1gb
image: fedora-21-x64
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
- name: debian-7.0
driver_plugin: digitalocean
driver_config:
size: 1gb
image: debian-7-0-x64
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
- name: ubuntu-12.04
driver_plugin: digitalocean
driver_config:
size: 1gb
image: ubuntu-12-04-x64
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
- name: ubuntu-14.04
driver_plugin: digitalocean
driver_config:
size: 1gb
image: ubuntu-14-04-x64
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
suites:
- name: default
run_list:
- recipe[chef-client::config]
- recipe[chef-client]
attributes: {}
- name: service_init
run_list:
- recipe[chef-client::config]
- recipe[chef-client::init_service]
attributes: {}
excludes: ["centos-7.0", "fedora-20"]
- name: service_runit
run_list:
- recipe[runit]
- recipe[chef-client::runit_service]
attributes: {}
- name: service_systemd
run_list:
- recipe[chef-client::systemd_service]
attributes: {}
includes: ["centos-7.0", "fedora-20"]
- name: service_upstart
run_list:
- recipe[chef-client::upstart_service]
includes: ["ubuntu-12.04", "ubuntu-14.04"]
attributes: {}
- name: cron
run_list:
- recipe[chef-client::cron]
attributes: {}
- name: delete_validation
run_list:
- recipe[chef-client::delete_validation]
attributes: {}
# Test that the we can use the cron_d directory
- name: cook-use_cron_d
run_list:
- recipe[chef-client::cron]
attributes:
chef_client:
cron:
use_cron_d: true
# 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"]