Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 1 | --- |
| 2 | driver: |
| 3 | name: docker |
Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 4 | hostname: {{ cookiecutter.kitchen_formula }}.ci.local |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 5 | #socket: tcp://127.0.0.1:2376 |
Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 6 | use_sudo: false |
| 7 | |
| 8 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 9 | |
Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 10 | provisioner: |
| 11 | name: salt_solo |
| 12 | salt_install: bootstrap |
| 13 | salt_bootstrap_url: https://bootstrap.saltstack.com |
| 14 | salt_version: latest |
Petr Michalec | d01cba1 | 2016-11-17 22:23:00 +0100 | [diff] [blame] | 15 | require_chef: false |
Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 16 | formula: {{ cookiecutter.kitchen_formula }} |
| 17 | log_level: info |
| 18 | state_top: |
| 19 | base: |
| 20 | "*": |
| 21 | - {{ cookiecutter.kitchen_formula }} |
| 22 | pillars: |
| 23 | top.sls: |
| 24 | base: |
| 25 | "*": |
| 26 | - {{ cookiecutter.kitchen_formula }} |
| 27 | grains: |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 28 | noservices: {{ 'True' if cookiecutter.kitchen_driver =='docker' else 'False' }} |
Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 29 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 30 | {%- if cookiecutter.kitchen_driver =='docker' %} |
| 31 | |
| 32 | |
| 33 | platforms: |
Martin Polreich | 3bbd92e | 2018-02-16 13:52:10 +0100 | [diff] [blame] | 34 | - name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %> |
| 35 | driver_config: |
| 36 | image: <%=ENV['PLATFORM'] || 'epcim/salt-formulas:saltstack-ubuntu-xenial-salt-stable'%> |
| 37 | platform: ubuntu |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 38 | |
| 39 | |
| 40 | verifier: |
| 41 | name: {{ cookiecutter.kitchen_verifier }} |
| 42 | sudo: true |
| 43 | |
| 44 | |
| 45 | suites: |
| 46 | {%- if cookiecutter.kitchen_suites == "" %} |
| 47 | - name: default |
| 48 | # provisioner: |
| 49 | # pillars-from-files: |
| 50 | # {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/default.sls |
| 51 | {%- else %} |
| 52 | {%- for suite in cookiecutter.kitchen_suites.split() %} |
| 53 | |
| 54 | - name: {{ suite }} |
| 55 | provisioner: |
| 56 | pillars-from-files: |
| 57 | {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{suite}}.sls |
| 58 | {%- endfor %} |
| 59 | {%- endif %} |
| 60 | |
| 61 | {%- endif %} |
Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 62 | |
| 63 | # vim: ft=yaml sw=2 ts=2 sts=2 tw=125 |