blob: 93cdd11d17ece6ba817259ca7ce21376363855eb [file] [log] [blame]
Petr Michalec993e3fa2016-07-15 15:56:34 +02001---
2driver:
Petr Michalecd6075d72016-11-15 23:49:36 +01003 name: vagrant
Petr Michalec993e3fa2016-07-15 15:56:34 +02004 vm_hostname: {{ cookiecutter.kitchen_formula }}.ci.local
5 use_sudo: false
6 customize:
7 memory: 512
Petr Michalec993e3fa2016-07-15 15:56:34 +02008
9
10provisioner:
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 Michalec993e3fa2016-07-15 15:56:34 +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:
28 noservices: {{ 'True' if cookiecutter.kitchen_driver =='docker' else 'False' }}
29
Petr Michalec3f949f62016-11-15 23:21:56 +010030{%- if cookiecutter.kitchen_driver =='vagrant' %}
Petr Michalec993e3fa2016-07-15 15:56:34 +020031
32
33platforms:
34 - name: ubuntu-14.04
35 - name: ubuntu-16.04
36 - name: centos-7.1
37
38
Petr Michalec3f949f62016-11-15 23:21:56 +010039verifier:
40 name: {{ cookiecutter.kitchen_verifier }}
41 sudo: true
42
43
Petr Michalec993e3fa2016-07-15 15:56:34 +020044suites:
45 {%- if cookiecutter.kitchen_suites == "" %}
Petr Michalec9d3b05b2016-07-20 11:09:28 +020046 - name: default
Petr Michalec993e3fa2016-07-15 15:56:34 +020047 # 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
Petr Michalec3f949f62016-11-15 23:21:56 +010060{%- endif %}
61
Petr Michalec1eac0ef2016-07-26 20:56:55 +020062# vim: ft=yaml sw=2 ts=2 sts=2 tw=125