-
Notifications
You must be signed in to change notification settings - Fork 0
/
.kitchen.yml
66 lines (61 loc) · 1.68 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
---
driver:
name: openstack
openstack_domain_name: <%= ENV['OS_DOMAIN_NAME'] %>
openstack_region: <%= ENV['OS_REGION_NAME'] %>
openstack_username: <%= ENV['OS_USERNAME'] %>
openstack_api_key: <%= ENV['OS_PASSWORD'] %>
openstack_auth_url: <%= ENV['OS_AUTH_BASE'] %>
openstack_project_name: <%= ENV['OS_TENANT_NAME'] %>
network_ref: <%= ENV['OS_NETWORK_IDS'] %>
security_groups:
<% if ENV['OS_SECURITY_GROUPS'] %>
<% ENV['OS_SECURITY_GROUPS'].split(',').each do |security_group| %>
- <%= security_group %>
<% end %>
<% else %>
- cloudforms_ssh_in
<% end %>
image_ref: <%= ENV['OS_BASE_IMAGE'] %>
flavor_ref: <%= ENV['OS_FLAVOR_NAME'] %>
username: <%= ENV['IMAGE_USERNAME'] %>
key_name: <%= ENV['KEYPAIR'] %>
floating_ip_pool: public
allocate_floating_ip: true
private_key_path: <%= ENV['KEYPAIR'] %>
user_data: .kitchen_userdata.txt
<% if ENV['MODE'] == "volume" %>
block_device_mapping:
make_volume: true
device_name: vdb
volume_size: 1
availability_zone: nova
delete_on_termination: true
creation_timeout: 600
<% end %>
<% if ENV['OS_NETWORK_IDS'] %>
network_ref:
<% ENV['OS_NETWORK_IDS'].split(',').each do |network| %>
- <%= network %>
<% end %>
<% end %>
transport:
ssh_key: <%= ENV['KEYPAIR'] %>
connection_timeout: 10
connection_retries: 5
username: <%= ENV['IMAGE_USERNAME'] %>
provisioner:
name: shell
<% if ENV['PROVISIONER_SCRIPT'] %>
script: <%= ENV['PROVISIONER_SCRIPT'] %>
<% end %>
platforms:
- name: <%= ENV['PLATFORM'] %>
suites:
- name: <%= ENV['MODE'] %>
busser:
<% if ENV['IMAGE_USERNAME'] == "centos" %>
ruby_bindir: "/tmp/wrap"
<% else %>
ruby_bindir: "/usr/bin"
<% end %>