blob: 5d4ebed3dc1109bb6772af3a6eb2b0917cf5e173 [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:
Martin Polreich3bbd92e2018-02-16 13:52:10 +010034 - name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %>
35 driver_config:
36 image: <%=ENV['PLATFORM'] || 'epcim/salt-formulas:saltstack-ubuntu-xenial-salt-stable'%>
37 platform: ubuntu
Petr Michalec3f949f62016-11-15 23:21:56 +010038
39
40verifier:
41 name: {{ cookiecutter.kitchen_verifier }}
42 sudo: true
43
44
45suites:
46 {%- if cookiecutter.kitchen_suites == "" %}
47 - name: default
48 # provisioner:
49 # pillars-from-files:
50 # {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/default.sls
51 {%- else %}
52 {%- for suite in cookiecutter.kitchen_suites.split() %}
53
54 - name: {{ suite }}
55 provisioner:
56 pillars-from-files:
57 {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{suite}}.sls
58 {%- endfor %}
59 {%- endif %}
60
61{%- endif %}
Petr Michalec166ea8d2016-07-18 09:11:08 +020062
63# vim: ft=yaml sw=2 ts=2 sts=2 tw=125