Saltstack Official Galera Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.6KB

  1. ---
  2. driver:
  3. name: docker
  4. hostname: galera.ci.local
  5. use_sudo: false
  6. provisioner:
  7. name: salt_solo
  8. salt_install: bootstrap
  9. salt_bootstrap_url: https://bootstrap.saltstack.com
  10. salt_version: latest
  11. require_chef: false
  12. log_level: error
  13. formula: galera
  14. grains:
  15. noservices: True
  16. dependencies:
  17. - name: mysql
  18. repo: git
  19. source: https://github.com/salt-formulas/salt-formula-mysql.git
  20. - name: linux
  21. repo: git
  22. source: https://github.com/salt-formulas/salt-formula-linux.git
  23. state_top:
  24. base:
  25. "*":
  26. - linux
  27. - galera
  28. pillars:
  29. top.sls:
  30. base:
  31. "*":
  32. - galeracluster_debian_repo
  33. - galera
  34. - mysqlver
  35. mysqlver.sls:
  36. linux:
  37. system:
  38. repo:
  39. # override url/path encoded versions
  40. mysql-wsrep:
  41. source: 'deb http://releases.galeracluster.com/mysql-wsrep-<%= ENV['MYSQL_VER'] || '5.6' %>/ubuntu <%= ENV['PLATFORM'] || 'xenial' %> main'
  42. pillars-from-files:
  43. galeracluster_debian_repo.sls: tests/pillar/repo_galeracluster.sls
  44. verifier:
  45. name: inspec
  46. sudo: true
  47. platforms:
  48. - name: <%=ENV['PLATFORM'] || 'ubuntu-xenial'%>
  49. driver_config:
  50. image: <%=ENV['PLATFORM'] || 'trevorj/salty-whales:xenial'%>
  51. platform: ubuntu
  52. suites:
  53. - name: master_cluster
  54. provisioner:
  55. pillars-from-files:
  56. galera.sls: tests/pillar/master_cluster.sls
  57. - name: slave_cluster
  58. provisioner:
  59. pillars-from-files:
  60. galera.sls: tests/pillar/slave_cluster.sls
  61. # vim: ft=yaml sw=2 ts=2 sts=2 tw=125