blob: a8c4051f80cb5021438626ba8f433abebbbf431a [file] [log] [blame]
Petr Michalec3ae395b2017-09-07 20:15:15 +02001---
2driver:
3 name: docker
4 use_sudo: false
5 volume:
6 - <%= ENV['PWD'] %>:/tmp/kitchen
7
8provisioner:
9 name: shell
10 script: verify.sh
11
12platforms:
13 <% `find classes/cluster -maxdepth 1 -mindepth 1 -type d | tr '_' '-' |sort -u`.split().each do |cluster| %>
14 <% cluster=cluster.split('/')[2] %>
15 - name: <%= cluster %>
16 driver_config:
17 #image: ubuntu:16.04
18 image: tcpcloud/salt-models-testing # With preinstalled dependencies (faster)
19 platform: ubuntu
20 hostname: cfg01.<%= cluster %>.local
21 provision_command:
22 - apt-get update
23 - apt-get install -y git curl python-pip
Petr Michaleccb924c12017-11-15 18:27:37 +010024 - pip install --upgrade pip
Petr Michalec3ae395b2017-09-07 20:15:15 +020025 - git clone https://github.com/salt-formulas/salt-formulas-scripts /srv/salt/scripts
26 - cd /srv/salt/scripts; git pull -r; cd -
27 # NOTE: Configure ENV options as needed, example:
28 - echo "
29 export BOOTSTRAP=1;\n
30 export CLUSTER_NAME=<%= cluster %>;\n
31 export FORMULAS_SOURCE=pkg;\n
Petr Michalecb8e83fc2017-12-15 15:27:28 +010032 export RECLASS_VERSION=master;\n
Petr Michalec3ae395b2017-09-07 20:15:15 +020033 export RECLASS_IGNORE_CLASS_NOTFOUND=True;\n
Petr Michaleccb924c12017-11-15 18:27:37 +010034 export RECLASS_IGNORE_CLASS_REGEXP='service.*';\n
Petr Michalec3ae395b2017-09-07 20:15:15 +020035 export EXTRA_FORMULAS="";\n
36 " > /kitchen.env
37 #export RECLASS_SOURCE_PATH=/usr/lib/python2.7/site-packages/reclass;\n
38 #export PYTHONPATH=$RECLASS_SOURCE_PATH:$PYTHONPATH;\n
39 <% end %>
40
41suites:
42 - name: cluster
43