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 | 5e4f843 | 2019-10-10 14:36:34 +0200 | [diff] [blame] | 31 | {%- for platform in cookiecutter.get('kitchen_platforms', ['xenial-2017.7']) %} |
| 32 | - name: {{ platform }} |
Martin Polreich | 3bbd92e | 2018-02-16 13:52:10 +0100 | [diff] [blame] | 33 | driver_config: |
Martin Polreich | 5e4f843 | 2019-10-10 14:36:34 +0200 | [diff] [blame] | 34 | image: docker-dev-local.docker.mirantis.net/mirantis/drivetrain/salt-formulas-ci/salt-formulas-ci-{{ platform }}:latest |
Martin Polreich | 3bbd92e | 2018-02-16 13:52:10 +0100 | [diff] [blame] | 35 | platform: ubuntu |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 36 | |
Martin Polreich | 5e4f843 | 2019-10-10 14:36:34 +0200 | [diff] [blame] | 37 | {%- endfor %} |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 38 | |
| 39 | verifier: |
| 40 | name: {{ cookiecutter.kitchen_verifier }} |
| 41 | sudo: true |
| 42 | |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 43 | suites: |
| 44 | {%- if cookiecutter.kitchen_suites == "" %} |
Martin Polreich | a294af0 | 2018-11-12 16:22:27 +0100 | [diff] [blame] | 45 | - name: {{ cookiecutter.role_name }}-single |
| 46 | provisioner: |
| 47 | pillars-from-files: |
| 48 | {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{ cookiecutter.role_name }}_single.sls |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 49 | {%- else %} |
| 50 | {%- for suite in cookiecutter.kitchen_suites.split() %} |
| 51 | |
| 52 | - name: {{ suite }} |
| 53 | provisioner: |
| 54 | pillars-from-files: |
Martin Polreich | a294af0 | 2018-11-12 16:22:27 +0100 | [diff] [blame] | 55 | {{ cookiecutter.kitchen_formula }}.sls: tests/pillar/{{ suite }}.sls |
Petr Michalec | 3f949f6 | 2016-11-15 23:21:56 +0100 | [diff] [blame] | 56 | {%- endfor %} |
| 57 | {%- endif %} |
| 58 | |
| 59 | {%- endif %} |
Petr Michalec | 166ea8d | 2016-07-18 09:11:08 +0200 | [diff] [blame] | 60 | |
| 61 | # vim: ft=yaml sw=2 ts=2 sts=2 tw=125 |