blob: 7df4724b00d3ed6f6ccbd4fe20584dc7eb571f86 [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
24 - git clone https://github.com/salt-formulas/salt-formulas-scripts /srv/salt/scripts
25 - cd /srv/salt/scripts; git pull -r; cd -
26 # NOTE: Configure ENV options as needed, example:
27 - echo "
28 export BOOTSTRAP=1;\n
29 export CLUSTER_NAME=<%= cluster %>;\n
30 export FORMULAS_SOURCE=pkg;\n
31 export RECLASS_VERSION=dev;\n
32 export RECLASS_IGNORE_CLASS_NOTFOUND=True;\n
33 export EXTRA_FORMULAS="";\n
34 " > /kitchen.env
35 #export RECLASS_SOURCE_PATH=/usr/lib/python2.7/site-packages/reclass;\n
36 #export PYTHONPATH=$RECLASS_SOURCE_PATH:$PYTHONPATH;\n
37 <% end %>
38
39suites:
40 - name: cluster
41