Martin Polreich | 8933a6c | 2017-04-11 14:55:08 +0200 | [diff] [blame] | 1 | --- |
| 2 | driver: |
| 3 | name: docker |
| 4 | hostname: galera.ci.local |
| 5 | use_sudo: false |
| 6 | |
| 7 | provisioner: |
| 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 Michalec | 89c8c3f | 2017-05-22 17:19:22 +0200 | [diff] [blame] | 17 | 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 Polreich | 8933a6c | 2017-04-11 14:55:08 +0200 | [diff] [blame] | 24 | state_top: |
| 25 | base: |
| 26 | "*": |
| 27 | - linux |
| 28 | - galera |
| 29 | pillars: |
| 30 | top.sls: |
| 31 | base: |
| 32 | "*": |
Petr Michalec | 5ff575c | 2017-11-06 15:37:05 +0100 | [diff] [blame] | 33 | - versions |
Vasyl Saienko | 812de58 | 2018-01-22 21:14:52 +0200 | [diff] [blame] | 34 | - repos_base |
Petr Michalec | 5ff575c | 2017-11-06 15:37:05 +0100 | [diff] [blame] | 35 | - repos |
Martin Polreich | 8933a6c | 2017-04-11 14:55:08 +0200 | [diff] [blame] | 36 | - galera |
Petr Michalec | 5ff575c | 2017-11-06 15:37:05 +0100 | [diff] [blame] | 37 | versions.sls: |
| 38 | galera: |
| 39 | version: |
| 40 | mysql: <%= ENV['MYSQL_VER'] || '5.6' %> |
| 41 | galera: <%= ENV['GALERA_VER'] || '3' %> |
Vasyl Saienko | 812de58 | 2018-01-22 21:14:52 +0200 | [diff] [blame] | 42 | # 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 Polreich | 8933a6c | 2017-04-11 14:55:08 +0200 | [diff] [blame] | 54 | pillars-from-files: |
Petr Michalec | 5ff575c | 2017-11-06 15:37:05 +0100 | [diff] [blame] | 55 | repos.sls: tests/pillar/repo_galeracluster.sls |
Martin Polreich | 8933a6c | 2017-04-11 14:55:08 +0200 | [diff] [blame] | 56 | |
| 57 | verifier: |
| 58 | name: inspec |
| 59 | sudo: true |
| 60 | |
| 61 | platforms: |
Martin Polreich | 664b13c | 2018-02-16 14:58:16 +0100 | [diff] [blame] | 62 | - name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %> |
Martin Polreich | 8933a6c | 2017-04-11 14:55:08 +0200 | [diff] [blame] | 63 | driver_config: |
Martin Polreich | 08c86d1 | 2018-11-20 15:07:53 +0100 | [diff] [blame] | 64 | image: <%=ENV['PLATFORM'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19'%> |
Martin Polreich | 8933a6c | 2017-04-11 14:55:08 +0200 | [diff] [blame] | 65 | platform: ubuntu |
| 66 | |
| 67 | suites: |
| 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 |