blob: 2f3725cefe67f27d056fb74e1cef52f28388d96a [file] [log] [blame]
Petr Michalec166ea8d2016-07-18 09:11:08 +02001---
2driver:
3 name: docker
Petr Michalec166ea8d2016-07-18 09:11:08 +02004 hostname: {{ cookiecutter.kitchen_formula }}.ci.local
Petr Michalec3f949f62016-11-15 23:21:56 +01005 #socket: tcp://127.0.0.1:2376
Petr Michalec166ea8d2016-07-18 09:11:08 +02006 use_sudo: false
7
8
Petr Michalec3f949f62016-11-15 23:21:56 +01009
Petr Michalec166ea8d2016-07-18 09:11:08 +020010provisioner:
11 name: salt_solo
12 salt_install: bootstrap
13 salt_bootstrap_url: https://bootstrap.saltstack.com
14 salt_version: latest
Petr Michalecd01cba12016-11-17 22:23:00 +010015 require_chef: false
Petr Michalec166ea8d2016-07-18 09:11:08 +020016 formula: {{ cookiecutter.kitchen_formula }}
17 log_level: info
18 state_top:
19 base:
20 "*":
21 - {{ cookiecutter.kitchen_formula }}
22 pillars:
23 top.sls:
24 base:
25 "*":
26 - {{ cookiecutter.kitchen_formula }}
27 grains:
Petr Michalec3f949f62016-11-15 23:21:56 +010028 noservices: {{ 'True' if cookiecutter.kitchen_driver =='docker' else 'False' }}
Petr Michalec166ea8d2016-07-18 09:11:08 +020029
Petr Michalec3f949f62016-11-15 23:21:56 +010030{%- if cookiecutter.kitchen_driver =='docker' %}
31
32
33platforms:
34 - name: ubuntu-14.04
35 - name: ubuntu-16.04
36 - name: centos-7.1
37
38
39verifier:
40 name: {{ cookiecutter.kitchen_verifier }}
41 sudo: true
42
43
44suites:
45 {%- if cookiecutter.kitchen_suites == "" %}
46 - name: default
47 # provisioner:
48 # pillars-from-files:
49 # {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/default.sls
50 {%- else %}
51 {%- for suite in cookiecutter.kitchen_suites.split() %}
52
53 - name: {{ suite }}
54 provisioner:
55 pillars-from-files:
56 {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{suite}}.sls
57 {%- endfor %}
58 {%- endif %}
59
60{%- endif %}
Petr Michalec166ea8d2016-07-18 09:11:08 +020061
62# vim: ft=yaml sw=2 ts=2 sts=2 tw=125