Saltstack Official Galera Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

41 lines
1.4KB

  1. parameters:
  2. _param:
  3. galera_server_cluster_name: galeracluster
  4. galera_server_bind_port: 3306
  5. galera_server_admin_user: root
  6. galera_max_connections: 20000
  7. galera_innodb_buffer_pool_size: 3138M
  8. kubernetes:
  9. control:
  10. configmap:
  11. galera-master:
  12. grains:
  13. os_family: Debian
  14. pillar:
  15. galera:
  16. master:
  17. enabled: true
  18. name: ${_param:galera_server_cluster_name}
  19. bind:
  20. address: 0.0.0.0
  21. port: ${_param:galera_server_bind_port}
  22. maintenance_password: ${_param:galera_server_maintenance_password}
  23. admin:
  24. user: ${_param:galera_server_admin_user}
  25. password: ${_param:galera_server_admin_password}
  26. members:
  27. - host: ${_param:mysql_service_host01}
  28. port: 4567
  29. - host: ${_param:mysql_service_host02}
  30. port: 4567
  31. - host: ${_param:mysql_service_host03}
  32. port: 4567
  33. max_connections: ${_param:galera_max_connections}
  34. innodb_buffer_pool_size: ${_param:galera_innodb_buffer_pool_size}
  35. mysql:
  36. server:
  37. users:
  38. - name: haproxy
  39. host: localhost
  40. - name: haproxy
  41. host: '%'