blob: 8495bd911d2353f58435e11b1085e41bf9bd88c6 [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
Petr Michalec166ea8d2016-07-18 09:11:08 +02008provisioner:
9 name: salt_solo
10 salt_install: bootstrap
11 salt_bootstrap_url: https://bootstrap.saltstack.com
12 salt_version: latest
Petr Michalecd01cba12016-11-17 22:23:00 +010013 require_chef: false
Petr Michalec166ea8d2016-07-18 09:11:08 +020014 formula: {{ cookiecutter.kitchen_formula }}
15 log_level: info
16 state_top:
17 base:
18 "*":
19 - {{ cookiecutter.kitchen_formula }}
20 pillars:
21 top.sls:
22 base:
23 "*":
24 - {{ cookiecutter.kitchen_formula }}
25 grains:
Petr Michalec3f949f62016-11-15 23:21:56 +010026 noservices: {{ 'True' if cookiecutter.kitchen_driver =='docker' else 'False' }}
Petr Michalec166ea8d2016-07-18 09:11:08 +020027
Petr Michalec3f949f62016-11-15 23:21:56 +010028{%- if cookiecutter.kitchen_driver =='docker' %}
29
Petr Michalec3f949f62016-11-15 23:21:56 +010030platforms:
Martin Polreicha294af02018-11-12 16:22:27 +010031 - name: xenial-stable
Martin Polreich3bbd92e2018-02-16 13:52:10 +010032 driver_config:
Martin Polreicha294af02018-11-12 16:22:27 +010033 image: docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19
Martin Polreich3bbd92e2018-02-16 13:52:10 +010034 platform: ubuntu
Petr Michalec3f949f62016-11-15 23:21:56 +010035
Martin Polreicha294af02018-11-12 16:22:27 +010036 - name: xenial-2017.7
37 driver_config:
38 image: docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19
39 platform: ubuntu
Petr Michalec3f949f62016-11-15 23:21:56 +010040
41verifier:
42 name: {{ cookiecutter.kitchen_verifier }}
43 sudo: true
44
Petr Michalec3f949f62016-11-15 23:21:56 +010045suites:
46 {%- if cookiecutter.kitchen_suites == "" %}
Martin Polreicha294af02018-11-12 16:22:27 +010047 - name: {{ cookiecutter.role_name }}-single
48 provisioner:
49 pillars-from-files:
50 {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{ cookiecutter.role_name }}_single.sls
Petr Michalec3f949f62016-11-15 23:21:56 +010051 {%- else %}
52 {%- for suite in cookiecutter.kitchen_suites.split() %}
53
54 - name: {{ suite }}
55 provisioner:
56 pillars-from-files:
Martin Polreicha294af02018-11-12 16:22:27 +010057 {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{ suite }}.sls
Petr Michalec3f949f62016-11-15 23:21:56 +010058 {%- 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