blob: 5d4ebed3dc1109bb6772af3a6eb2b0917cf5e173 [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:
- name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %>
driver_config:
image: <%=ENV['PLATFORM'] || 'epcim/salt-formulas:saltstack-ubuntu-xenial-salt-stable'%>
platform: ubuntu
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