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 | |
Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 8 | provisioner: |
| 9 | name: salt_solo |
| 10 | salt_install: bootstrap |
| 11 | salt_bootstrap_url: https://bootstrap.saltstack.com |
| 12 | salt_version: latest |
Petr Michalec | d01cba1 | 2016-11-17 22:23:00 +0100 | [diff] [blame] | 13 | require_chef: false |
Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 14 | formula: {{ cookiecutter.kitchen_formula }} |
| 15 | log_level: info |
| 16 | state_top: |
| 17 | base: |
| 18 | "*": |
| 19 | - {{ cookiecutter.kitchen_formula }} |
| 20 | pillars: |
| 21 | top.sls: |
| 22 | base: |
| 23 | "*": |
| 24 | - {{ cookiecutter.kitchen_formula }} |
| 25 | grains: |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 26 | noservices: {{ 'True' if cookiecutter.kitchen_driver =='docker' else 'False' }} |
Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 27 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 28 | {%- if cookiecutter.kitchen_driver =='docker' %} |
| 29 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 30 | platforms: |
Martin Polreich | a294af0 | 2018-11-12 16:22:27 +0100 | [diff] [blame^] | 31 | - name: xenial-stable |
Martin Polreich | 3bbd92e | 2018-02-16 13:52:10 +0100 | [diff] [blame] | 32 | driver_config: |
Martin Polreich | a294af0 | 2018-11-12 16:22:27 +0100 | [diff] [blame^] | 33 | image: docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19 |
Martin Polreich | 3bbd92e | 2018-02-16 13:52:10 +0100 | [diff] [blame] | 34 | platform: ubuntu |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 35 | |
Martin Polreich | a294af0 | 2018-11-12 16:22:27 +0100 | [diff] [blame^] | 36 | - name: xenial-2017.7 |
| 37 | driver_config: |
| 38 | image: docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19 |
| 39 | platform: ubuntu |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 40 | |
| 41 | verifier: |
| 42 | name: {{ cookiecutter.kitchen_verifier }} |
| 43 | sudo: true |
| 44 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 45 | suites: |
| 46 | {%- if cookiecutter.kitchen_suites == "" %} |
Martin Polreich | a294af0 | 2018-11-12 16:22:27 +0100 | [diff] [blame^] | 47 | - name: {{ cookiecutter.role_name }}-single |
| 48 | provisioner: |
| 49 | pillars-from-files: |
| 50 | {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{ cookiecutter.role_name }}_single.sls |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 51 | {%- else %} |
| 52 | {%- for suite in cookiecutter.kitchen_suites.split() %} |
| 53 | |
| 54 | - name: {{ suite }} |
| 55 | provisioner: |
| 56 | pillars-from-files: |
Martin Polreich | a294af0 | 2018-11-12 16:22:27 +0100 | [diff] [blame^] | 57 | {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{ suite }}.sls |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 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 |