Saltstack Official Galera Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

79 lines
2.1KB

  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. - versions
  33. - repos_base
  34. - repos
  35. - galera
  36. versions.sls:
  37. galera:
  38. version:
  39. mysql: <%= ENV['MYSQL_VER'] || '5.6' %>
  40. galera: <%= ENV['GALERA_VER'] || '3' %>
  41. # NOTE(vsaienko) There is no guarntee that pillars are loaded before pillars-from-file
  42. # as result we cant assume variables defined via pillars: are available when pillars-from-file
  43. # is loaded. Move 'source' definitions of repos to .kitchen.yml as it used ENV variable
  44. repos_base.sls:
  45. linux:
  46. system:
  47. enabled: true
  48. repo:
  49. galeracluster:
  50. source: deb http://releases.galeracluster.com/galera-<%=ENV['GALERA_VER'] || '3'%>/ubuntu {{ grains.get('oscodename') }} main
  51. mysql-wsrep:
  52. source: deb http://releases.galeracluster.com/mysql-wsrep-<%=ENV['MYSQL_VER'] || '5.6'%>/ubuntu {{ grains.get('oscodename') }} main
  53. pillars-from-files:
  54. repos.sls: tests/pillar/repo_galeracluster.sls
  55. verifier:
  56. name: inspec
  57. sudo: true
  58. platforms:
  59. - name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %>
  60. driver_config:
  61. image: <%=ENV['PLATFORM'] || 'epcim/salt-formulas:saltstack-ubuntu-xenial-salt-stable'%>
  62. platform: ubuntu
  63. suites:
  64. - name: master_cluster
  65. provisioner:
  66. pillars-from-files:
  67. galera.sls: tests/pillar/master_cluster.sls
  68. - name: slave_cluster
  69. provisioner:
  70. pillars-from-files:
  71. galera.sls: tests/pillar/slave_cluster.sls
  72. # vim: ft=yaml sw=2 ts=2 sts=2 tw=125