blob: 93cdd11d17ece6ba817259ca7ce21376363855eb [file] [log] [blame]
---
driver:
name: vagrant
vm_hostname: {{ cookiecutter.kitchen_formula }}.ci.local
use_sudo: false
customize:
memory: 512
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 =='vagrant' %}
platforms:
- name: ubuntu-14.04
- name: ubuntu-16.04
- name: centos-7.1
verifier:
name: {{ cookiecutter.kitchen_verifier }}
sudo: true
suites:
{%- if cookiecutter.kitchen_suites == "" %}
- name: default
# provisioner:
# pillars-from-files:
# {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/default.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