blob: 1d379d6f9d25a4de348da0d84736432348398176 [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
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:
27 noservices: {{ 'True' if cookiecutter.kitchen_driver =='docker' else 'False' }}
28
Petr Michalec3f949f62016-11-15 23:21:56 +010029{%- if cookiecutter.kitchen_driver =='vagrant' %}
Petr Michalec993e3fa2016-07-15 15:56:34 +020030
31
32platforms:
33 - name: ubuntu-14.04
34 - name: ubuntu-16.04
35 - name: centos-7.1
36
37
Petr Michalec3f949f62016-11-15 23:21:56 +010038verifier:
39 name: {{ cookiecutter.kitchen_verifier }}
40 sudo: true
41
42
Petr Michalec993e3fa2016-07-15 15:56:34 +020043suites:
44 {%- if cookiecutter.kitchen_suites == "" %}
Petr Michalec9d3b05b2016-07-20 11:09:28 +020045 - name: default
Petr Michalec993e3fa2016-07-15 15:56:34 +020046 # 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
Petr Michalec3f949f62016-11-15 23:21:56 +010059{%- endif %}
60
Petr Michalec1eac0ef2016-07-26 20:56:55 +020061# vim: ft=yaml sw=2 ts=2 sts=2 tw=125