blob: 37cb6a38e8f9d1793c2ba4ec5c8d9b17f138a90b [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
15 formula: {{ cookiecutter.kitchen_formula }}
16 log_level: info
17 state_top:
18 base:
19 "*":
20 - {{ cookiecutter.kitchen_formula }}
21 pillars:
22 top.sls:
23 base:
24 "*":
25 - {{ cookiecutter.kitchen_formula }}
26 grains:
Petr Michalec3f949f62016-11-15 23:21:56 +010027 noservices: {{ 'True' if cookiecutter.kitchen_driver =='docker' else 'False' }}
Petr Michalec166ea8d2016-07-18 09:11:08 +020028
Petr Michalec3f949f62016-11-15 23:21:56 +010029{%- if cookiecutter.kitchen_driver =='docker' %}
30
31
32platforms:
33 - name: ubuntu-14.04
34 - name: ubuntu-16.04
35 - name: centos-7.1
36
37
38verifier:
39 name: {{ cookiecutter.kitchen_verifier }}
40 sudo: true
41
42
43suites:
44 {%- if cookiecutter.kitchen_suites == "" %}
45 - name: default
46 # provisioner:
47 # pillars-from-files:
48 # {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/default.sls
49 {%- else %}
50 {%- for suite in cookiecutter.kitchen_suites.split() %}
51
52 - name: {{ suite }}
53 provisioner:
54 pillars-from-files:
55 {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{suite}}.sls
56 {%- endfor %}
57 {%- endif %}
58
59{%- endif %}
Petr Michalec166ea8d2016-07-18 09:11:08 +020060
61# vim: ft=yaml sw=2 ts=2 sts=2 tw=125