blob: a7e28aa340680756addbb3f55e1297e145860611 [file] [log] [blame]
---
driver:
name: docker
hostname: {{ cookiecutter.kitchen_formula }}.ci.local
#socket: tcp://127.0.0.1:2376
use_sudo: false
provisioner:
name: salt_solo
salt_install: bootstrap
salt_bootstrap_url: https://bootstrap.saltstack.com
salt_version: latest
require_chef: false
formula: {{ cookiecutter.kitchen_formula }}
log_level: info
state_top:
base:
"*":
- {{ cookiecutter.kitchen_formula }}
pillars:
top.sls:
base:
"*":
- {{ cookiecutter.kitchen_formula }}
grains:
noservices: {{ 'True' if cookiecutter.kitchen_driver =='docker' else 'False' }}
{%- if cookiecutter.kitchen_driver =='docker' %}
platforms:
{%- for platform in cookiecutter.get('kitchen_platforms', ['xenial-2017.7']) %}
- name: {{ platform }}
driver_config:
image: docker-dev-local.docker.mirantis.net/mirantis/drivetrain/salt-formulas-ci/salt-formulas-ci-{{ platform }}:latest
platform: ubuntu
{%- endfor %}
verifier:
name: {{ cookiecutter.kitchen_verifier }}
sudo: true
suites:
{%- if cookiecutter.kitchen_suites == "" %}
- name: {{ cookiecutter.role_name }}-single
provisioner:
pillars-from-files:
{{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{ cookiecutter.role_name }}_single.sls
{%- else %}
{%- for suite in cookiecutter.kitchen_suites.split() %}
- name: {{ suite }}
provisioner:
pillars-from-files:
{{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{ suite }}.sls
{%- endfor %}
{%- endif %}
{%- endif %}
# vim: ft=yaml sw=2 ts=2 sts=2 tw=125