blob: b2b69e03bc7989b2a62f9d2304dbb79a03146824 [file] [log] [blame]
Martin Polreich8933a6c2017-04-11 14:55:08 +02001---
2driver:
3 name: docker
4 hostname: galera.ci.local
5 use_sudo: false
6
7provisioner:
8 name: salt_solo
9 salt_install: bootstrap
10 salt_bootstrap_url: https://bootstrap.saltstack.com
11 salt_version: latest
12 require_chef: false
13 log_level: error
14 formula: galera
15 grains:
16 noservices: True
Petr Michalec89c8c3f2017-05-22 17:19:22 +020017 dependencies:
18 - name: mysql
19 repo: git
20 source: https://github.com/salt-formulas/salt-formula-mysql.git
21 - name: linux
22 repo: git
23 source: https://github.com/salt-formulas/salt-formula-linux.git
Martin Polreich8933a6c2017-04-11 14:55:08 +020024 state_top:
25 base:
26 "*":
27 - linux
28 - galera
29 pillars:
30 top.sls:
31 base:
32 "*":
Petr Michalec5ff575c2017-11-06 15:37:05 +010033 - versions
Vasyl Saienko812de582018-01-22 21:14:52 +020034 - repos_base
Petr Michalec5ff575c2017-11-06 15:37:05 +010035 - repos
Martin Polreich8933a6c2017-04-11 14:55:08 +020036 - galera
Petr Michalec5ff575c2017-11-06 15:37:05 +010037 versions.sls:
38 galera:
39 version:
40 mysql: <%= ENV['MYSQL_VER'] || '5.6' %>
41 galera: <%= ENV['GALERA_VER'] || '3' %>
Vasyl Saienko812de582018-01-22 21:14:52 +020042 # NOTE(vsaienko) There is no guarntee that pillars are loaded before pillars-from-file
43 # as result we cant assume variables defined via pillars: are available when pillars-from-file
44 # is loaded. Move 'source' definitions of repos to .kitchen.yml as it used ENV variable
45 repos_base.sls:
46 linux:
47 system:
48 enabled: true
49 repo:
50 galeracluster:
51 source: deb http://releases.galeracluster.com/galera-<%=ENV['GALERA_VER'] || '3'%>/ubuntu {{ grains.get('oscodename') }} main
52 mysql-wsrep:
53 source: deb http://releases.galeracluster.com/mysql-wsrep-<%=ENV['MYSQL_VER'] || '5.6'%>/ubuntu {{ grains.get('oscodename') }} main
Martin Polreich8933a6c2017-04-11 14:55:08 +020054 pillars-from-files:
Petr Michalec5ff575c2017-11-06 15:37:05 +010055 repos.sls: tests/pillar/repo_galeracluster.sls
Martin Polreich8933a6c2017-04-11 14:55:08 +020056
57verifier:
58 name: inspec
59 sudo: true
60
61platforms:
Martin Polreich664b13c2018-02-16 14:58:16 +010062 - name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %>
Martin Polreich8933a6c2017-04-11 14:55:08 +020063 driver_config:
Martin Polreich08c86d12018-11-20 15:07:53 +010064 image: <%=ENV['PLATFORM'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19'%>
Martin Polreich8933a6c2017-04-11 14:55:08 +020065 platform: ubuntu
66
67suites:
68
69 - name: master_cluster
70 provisioner:
71 pillars-from-files:
72 galera.sls: tests/pillar/master_cluster.sls
73
74 - name: slave_cluster
75 provisioner:
76 pillars-from-files:
77 galera.sls: tests/pillar/slave_cluster.sls
78# vim: ft=yaml sw=2 ts=2 sts=2 tw=125