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 |
Petr Michalec | d01cba1 | 2016-11-17 22:23:00 +0100 | [diff] [blame] | 15 | require_chef: false |
Petr Michalec | 993e3fa | 2016-07-15 15:56:34 +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: |
| 28 | noservices: {{ 'True' if cookiecutter.kitchen_driver =='docker' else 'False' }} |
| 29 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 30 | {%- if cookiecutter.kitchen_driver =='vagrant' %} |
Petr Michalec | 993e3fa | 2016-07-15 15:56:34 +0200 | [diff] [blame] | 31 | |
| 32 | |
| 33 | platforms: |
| 34 | - name: ubuntu-14.04 |
| 35 | - name: ubuntu-16.04 |
| 36 | - name: centos-7.1 |
| 37 | |
| 38 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 39 | verifier: |
| 40 | name: {{ cookiecutter.kitchen_verifier }} |
| 41 | sudo: true |
| 42 | |
| 43 | |
Petr Michalec | 993e3fa | 2016-07-15 15:56:34 +0200 | [diff] [blame] | 44 | suites: |
| 45 | {%- if cookiecutter.kitchen_suites == "" %} |
Petr Michalec | 9d3b05b | 2016-07-20 11:09:28 +0200 | [diff] [blame] | 46 | - name: default |
Petr Michalec | 993e3fa | 2016-07-15 15:56:34 +0200 | [diff] [blame] | 47 | # provisioner: |
| 48 | # pillars-from-files: |
| 49 | # {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/default.sls |
| 50 | {%- else %} |
| 51 | {%- for suite in cookiecutter.kitchen_suites.split() %} |
| 52 | |
| 53 | - name: {{ suite }} |
| 54 | provisioner: |
| 55 | pillars-from-files: |
| 56 | {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{suite}}.sls |
| 57 | {%- endfor %} |
| 58 | {%- endif %} |
| 59 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 60 | {%- endif %} |
| 61 | |
Petr Michalec | 1eac0ef | 2016-07-26 20:56:55 +0200 | [diff] [blame] | 62 | # vim: ft=yaml sw=2 ts=2 sts=2 tw=125 |