blob: a7e28aa340680756addbb3f55e1297e145860611 [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 Polreich5e4f8432019-10-10 14:36:34 +020031{%- for platform in cookiecutter.get('kitchen_platforms', ['xenial-2017.7']) %}
32 - name: {{ platform }}
Martin Polreich3bbd92e2018-02-16 13:52:10 +010033 driver_config:
Martin Polreich5e4f8432019-10-10 14:36:34 +020034 image: docker-dev-local.docker.mirantis.net/mirantis/drivetrain/salt-formulas-ci/salt-formulas-ci-{{ platform }}:latest
Martin Polreich3bbd92e2018-02-16 13:52:10 +010035 platform: ubuntu
Petr Michalec3f949f62016-11-15 23:21:56 +010036
Martin Polreich5e4f8432019-10-10 14:36:34 +020037{%- endfor %}
Petr Michalec3f949f62016-11-15 23:21:56 +010038
39verifier:
40 name: {{ cookiecutter.kitchen_verifier }}
41 sudo: true
42
Petr Michalec3f949f62016-11-15 23:21:56 +010043suites:
44 {%- if cookiecutter.kitchen_suites == "" %}
Martin Polreicha294af02018-11-12 16:22:27 +010045 - name: {{ cookiecutter.role_name }}-single
46 provisioner:
47 pillars-from-files:
48 {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{ cookiecutter.role_name }}_single.sls
Petr Michalec3f949f62016-11-15 23:21:56 +010049 {%- else %}
50 {%- for suite in cookiecutter.kitchen_suites.split() %}
51
52 - name: {{ suite }}
53 provisioner:
54 pillars-from-files:
Martin Polreicha294af02018-11-12 16:22:27 +010055 {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{ suite }}.sls
Petr Michalec3f949f62016-11-15 23:21:56 +010056 {%- 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