Petr Michalec | 993e3fa | 2016-07-15 15:56:34 +0200 | [diff] [blame] | 1 | --- |
| 2 | driver: |
Petr Michalec | d6075d7 | 2016-11-15 23:49:36 +0100 | [diff] [blame] | 3 | name: vagrant |
Petr Michalec | 993e3fa | 2016-07-15 15:56:34 +0200 | [diff] [blame] | 4 | vm_hostname: {{ cookiecutter.kitchen_formula }}.ci.local |
| 5 | use_sudo: false |
| 6 | customize: |
| 7 | memory: 512 |
Petr Michalec | 993e3fa | 2016-07-15 15:56:34 +0200 | [diff] [blame] | 8 | |
| 9 | |
| 10 | provisioner: |
| 11 | name: salt_solo |
| 12 | salt_install: bootstrap |
| 13 | salt_bootstrap_url: https://bootstrap.saltstack.com |
| 14 | salt_version: latest |
| 15 | formula: {{ cookiecutter.kitchen_formula }} |
| 16 | log_level: info |
| 17 | state_top: |
| 18 | base: |
| 19 | "*": |
| 20 | - {{ cookiecutter.kitchen_formula }} |
| 21 | pillars: |
| 22 | top.sls: |
| 23 | base: |
| 24 | "*": |
| 25 | - {{ cookiecutter.kitchen_formula }} |
| 26 | grains: |
| 27 | noservices: {{ 'True' if cookiecutter.kitchen_driver =='docker' else 'False' }} |
| 28 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 29 | {%- if cookiecutter.kitchen_driver =='vagrant' %} |
Petr Michalec | 993e3fa | 2016-07-15 15:56:34 +0200 | [diff] [blame] | 30 | |
| 31 | |
| 32 | platforms: |
| 33 | - name: ubuntu-14.04 |
| 34 | - name: ubuntu-16.04 |
| 35 | - name: centos-7.1 |
| 36 | |
| 37 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 38 | verifier: |
| 39 | name: {{ cookiecutter.kitchen_verifier }} |
| 40 | sudo: true |
| 41 | |
| 42 | |
Petr Michalec | 993e3fa | 2016-07-15 15:56:34 +0200 | [diff] [blame] | 43 | suites: |
| 44 | {%- if cookiecutter.kitchen_suites == "" %} |
Petr Michalec | 9d3b05b | 2016-07-20 11:09:28 +0200 | [diff] [blame] | 45 | - name: default |
Petr Michalec | 993e3fa | 2016-07-15 15:56:34 +0200 | [diff] [blame] | 46 | # provisioner: |
| 47 | # pillars-from-files: |
| 48 | # {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/default.sls |
| 49 | {%- else %} |
| 50 | {%- for suite in cookiecutter.kitchen_suites.split() %} |
| 51 | |
| 52 | - name: {{ suite }} |
| 53 | provisioner: |
| 54 | pillars-from-files: |
| 55 | {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{suite}}.sls |
| 56 | {%- endfor %} |
| 57 | {%- endif %} |
| 58 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 59 | {%- endif %} |
| 60 | |
Petr Michalec | 1eac0ef | 2016-07-26 20:56:55 +0200 | [diff] [blame] | 61 | # vim: ft=yaml sw=2 ts=2 sts=2 tw=125 |