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 |
| 34 | - repos |
Martin Polreich | 8933a6c | 2017-04-11 14:55:08 +0200 | [diff] [blame] | 35 | - galera |
Petr Michalec | 5ff575c | 2017-11-06 15:37:05 +0100 | [diff] [blame] | 36 | versions.sls: |
| 37 | galera: |
| 38 | version: |
| 39 | mysql: <%= ENV['MYSQL_VER'] || '5.6' %> |
| 40 | galera: <%= ENV['GALERA_VER'] || '3' %> |
Martin Polreich | 8933a6c | 2017-04-11 14:55:08 +0200 | [diff] [blame] | 41 | pillars-from-files: |
Petr Michalec | 5ff575c | 2017-11-06 15:37:05 +0100 | [diff] [blame] | 42 | repos.sls: tests/pillar/repo_galeracluster.sls |
Martin Polreich | 8933a6c | 2017-04-11 14:55:08 +0200 | [diff] [blame] | 43 | |
| 44 | verifier: |
| 45 | name: inspec |
| 46 | sudo: true |
| 47 | |
| 48 | platforms: |
| 49 | - name: <%=ENV['PLATFORM'] || 'ubuntu-xenial'%> |
| 50 | driver_config: |
| 51 | image: <%=ENV['PLATFORM'] || 'trevorj/salty-whales:xenial'%> |
| 52 | platform: ubuntu |
| 53 | |
| 54 | suites: |
| 55 | |
| 56 | - name: master_cluster |
| 57 | provisioner: |
| 58 | pillars-from-files: |
| 59 | galera.sls: tests/pillar/master_cluster.sls |
| 60 | |
| 61 | - name: slave_cluster |
| 62 | provisioner: |
| 63 | pillars-from-files: |
| 64 | galera.sls: tests/pillar/slave_cluster.sls |
| 65 | # vim: ft=yaml sw=2 ts=2 sts=2 tw=125 |