blob: 6dbf7b2d62fccbc54882139c339298866a968245 [file] [log] [blame]
Mykyta Karpina1487982017-06-29 15:15:07 +03001
2# usage: `KITCHEN_LOCAL_YAML=.kitchen.openstack.yml kitchen test`
3
4# https://docs.chef.io/config_yml_kitchen.html
5# https://github.com/test-kitchen/kitchen-openstack
6
7---
8driver:
9 name: openstack
10 openstack_auth_url: <%= ENV['OS_AUTH_URL'] %>/tokens
11 openstack_username: <%= ENV['OS_USERNAME'] || 'ci' %>
12 openstack_api_key: <%= ENV['OS_PASSWORD'] || 'ci' %>
13 openstack_tenant: <%= ENV['OS_TENANT_NAME'] || 'ci_jenkins' %>
14
15 #floating_ip_pool: <%= ENV['OS_FLOATING_IP_POOL'] || 'nova' %>
16 key_name: <%= ENV['BOOTSTRAP_SSH_KEY_NAME'] || 'bootstrap_insecure' %>
17 private_key_path: <%= ENV['BOOTSTRAP_SSH_KEY_PATH'] || "#{ENV['HOME']}/.ssh/id_rsa_bootstrap_insecure" %>
18
19
20platforms:
21 - name: ubuntu-14.04
22 driver:
23 username: <%= ENV['OS_UBUNTU_IMAGE_USER'] || 'root' %>
24 image_ref: <%= ENV['OS_UBUNTU_IMAGE_REF'] || 'ubuntu-14-04-x64-1455869035' %>
25 flavor_ref: m1.medium
26 network_ref:
27 <% if ENV['OS_NETWORK_REF'] -%>
28 - <% ENV['OS_NETWORK_REF'] %>
29 <% else -%>
30 - ci-net
31 <% end -%>
32 # force update apt cache on the image
33 run_list:
34 - recipe[apt]
35 attributes:
36 apt:
37 compile_time_update: true
38transport:
39 username: <%= ENV['OS_UBUNTU_IMAGE_USER'] || 'root' %>
40
41# vim: ft=yaml sw=2 ts=2 sts=2 tw=125