-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kitchen_ec2.yml
61 lines (58 loc) · 1.59 KB
/
.kitchen_ec2.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
---
driver:
name: ec2
tags: {
"Name": <%= ENV['COOKBOOK'] %>
}
aws_ssh_key_id: <%= ENV['EC2_SSH_KEY_ID'] %>
instance_type: <%= ENV['EC2_INSTANCE_TYPE'] %>
region: <%= ENV['EC2_REGION'] %>
availability_zone: <%= ENV['EC2_AZ'] %>
subnet_id: <%= ENV['EC2_SUBNET_ID'] %>
security_group_ids: [<%= ENV['EC2_SG'] %>]
require_chef_omnibus: '12.16.42'
retryable_tries: 120
provisioner:
name: chef_zero
environments_path: test/environments
client_rb:
environment: cookbook_ci
platforms:
- name: ubuntu
transport:
name: ssh
username: <%= ENV['SSH_USER'] %>
ssh_key: <%= ENV['SSH_KEY'] %>
driver:
image_search:
"name": <%= ENV['EC2_UBUNTU_IMAGE_NAME'] %>
block_device_mappings:
- device_name: /dev/sda1
ebs:
delete_on_termination: true
- name: windows
transport:
name: winrm
username: <%= ENV['WIN_USER'] %>
password: <%= ENV['WIN_PASS'] %>
driver:
image_search:
"name": <%= ENV['EC2_IMAGE_NAME'] %>
block_device_mappings:
- device_name: /dev/sda1
ebs:
volume_type: standard
volume_size: 40
delete_on_termination: true
- device_name: /dev/sdf
ebs:
volume_type: standard
volume_size: 20
delete_on_termination: true
suites:
- name: <%= ENV['COOKBOOK'] %>
data_bags_path: <%= ENV['CHEF_DATA_BAGS'] %>
encrypted_data_bag_secret_key_path: <%= ENV['CHEF_SECRET_FILE'] %>
run_list:
- recipe[daptiv_java::default]
- recipe[minitest-handler::default]