Filip Pytloun | 3893a6b | 2016-07-11 15:49:40 +0200 | [diff] [blame] | 1 | --- |
| 2 | # https://docs.chef.io/config_yml_kitchen.html |
| 3 | |
| 4 | driver: |
| 5 | # OPENSTACK API |
| 6 | # https://github.com/test-kitchen/kitchen-openstack |
| 7 | name: openstack |
| 8 | openstack_auth_url: <%= ENV['OS_AUTH_URL'] %>/tokens |
| 9 | openstack_username: <%= ENV['OS_USERNAME'] || 'ci' %> |
| 10 | openstack_api_key: <%= ENV['OS_PASSWORD'] || 'ci' %> |
| 11 | openstack_tenant: <%= ENV['OS_TENANT_NAME'] || 'ci_jenkins' %> |
| 12 | |
| 13 | #floating_ip_pool: <%= ENV['OS_FLOATING_IP_POOL'] || 'nova' %> |
| 14 | #key_name: <%= ENV['BOOTSTRAP_SSH_KEY_NAME'] || 'id_ed25519' %> |
| 15 | key_name: <%= ENV['BOOTSTRAP_SSH_KEY_NAME'] || 'bootstrap_insecure' %> |
| 16 | private_key_path: <%= ENV['BOOTSTRAP_SSH_KEY_PATH'] || "#{ENV['HOME']}/.ssh/id_rsa_bootstrap_insecure" %> |
| 17 | |
| 18 | require_chef_omnibus: false #[e.g. 'true' or a version number if you need Chef] |
| 19 | |
| 20 | |
| 21 | platforms: |
| 22 | - name: ubuntu-14.04 |
| 23 | driver: |
| 24 | username: <%= ENV['OS_UBUNTU_IMAGE_USER'] || 'root' %> |
| 25 | image_ref: <%= ENV['OS_UBUNTU_IMAGE_REF'] || 'ubuntu-14-04-x64-1455869035' %> |
| 26 | flavor_ref: m1.medium |
| 27 | network_ref: |
| 28 | <% if ENV['OS_NETWORK_REF'] -%> |
| 29 | - <% ENV['OS_NETWORK_REF'] %> |
| 30 | <% else -%> |
| 31 | - ci-net |
| 32 | <% end -%> |
| 33 | # force update apt cache on the image |
| 34 | run_list: |
| 35 | - recipe[apt] |
| 36 | attributes: |
| 37 | apt: |
| 38 | compile_time_update: true |
| 39 | transport: |
| 40 | username: <%= ENV['OS_UBUNTU_IMAGE_USER'] || 'root' %> |
| 41 | |
| 42 | |
| 43 | # vim: sw=2 ts=2 sts=2 tw=125 |
| 44 | ## EXAMPLES, dynamic kitchen driver, http://stackoverflow.com/questions/26516373/alternate-drivers-with-test-kitchen |