-
Notifications
You must be signed in to change notification settings - Fork 9
/
.kitchen.openstack.yml
41 lines (34 loc) · 1.27 KB
/
.kitchen.openstack.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
# usage: `KITCHEN_LOCAL_YAML=.kitchen.openstack.yml kitchen test`
# https://docs.chef.io/config_yml_kitchen.html
# https://github.com/test-kitchen/kitchen-openstack
---
driver:
name: openstack
openstack_auth_url: <%= ENV['OS_AUTH_URL'] %>/tokens
openstack_username: <%= ENV['OS_USERNAME'] || 'ci' %>
openstack_api_key: <%= ENV['OS_PASSWORD'] || 'ci' %>
openstack_tenant: <%= ENV['OS_TENANT_NAME'] || 'ci_jenkins' %>
#floating_ip_pool: <%= ENV['OS_FLOATING_IP_POOL'] || 'nova' %>
key_name: <%= ENV['BOOTSTRAP_SSH_KEY_NAME'] || 'bootstrap_insecure' %>
private_key_path: <%= ENV['BOOTSTRAP_SSH_KEY_PATH'] || "#{ENV['HOME']}/.ssh/id_rsa_bootstrap_insecure" %>
platforms:
- name: ubuntu-14.04
driver:
username: <%= ENV['OS_UBUNTU_IMAGE_USER'] || 'root' %>
image_ref: <%= ENV['OS_UBUNTU_IMAGE_REF'] || 'ubuntu-14-04-x64-1455869035' %>
flavor_ref: m1.medium
network_ref:
<% if ENV['OS_NETWORK_REF'] -%>
- <% ENV['OS_NETWORK_REF'] %>
<% else -%>
- ci-net
<% end -%>
# force update apt cache on the image
run_list:
- recipe[apt]
attributes:
apt:
compile_time_update: true
transport:
username: <%= ENV['OS_UBUNTU_IMAGE_USER'] || 'root' %>
# vim: ft=yaml sw=2 ts=2 sts=2 tw=125