Saltstack Official Galera Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

41 Zeilen
2.0KB

  1. {%- set master = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'pkgs': ['mariadb-server-10.1', 'galera-3', 'libmariadbclient18', 'libmysqlclient18', 'mariadb-client-10.1', 'mariadb-client-core-10.1', 'mariadb-common', 'mariadb-server-core-10.1', 'mysql-common', 'python-mysqldb'],
  4. 'service': 'mysql',
  5. 'wsrep_provider': '/usr/lib/galera/libgalera_smm.so',
  6. 'log_file': '/var/log/mysql.log',
  7. 'socket': '/var/run/mysqld/mysqld.sock',
  8. 'config': '/etc/mysql/my.cnf',
  9. },
  10. 'RedHat': {
  11. 'pkgs': ['galera', 'mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync', 'percona-xtrabackup', 'psmisc', 'socat'],
  12. 'xtrabackup_repo': 'http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm',
  13. 'service': 'mariadb',
  14. 'wsrep_provider': '/usr/lib64/galera/libgalera_smm.so',
  15. 'log_file': '/var/log/mariadb/mariadb.log',
  16. 'socket': '/var/run/mariadb/mysqld.sock',
  17. 'config': '/etc/my.cnf',
  18. },
  19. }, merge=salt['pillar.get']('galera:master')) %}
  20. {%- set slave = salt['grains.filter_by']({
  21. 'Debian': {
  22. 'pkgs': ['mariadb-server-10.1', 'galera-3', 'libmariadbclient18', 'libmysqlclient18', 'mariadb-client-10.1', 'mariadb-client-core-10.1', 'mariadb-common', 'mariadb-server-core-10.1', 'mysql-common', 'python-mysqldb'],
  23. 'service': 'mysql',
  24. 'wsrep_provider': '/usr/lib/galera/libgalera_smm.so',
  25. 'log_file': '/var/log/mysql.log',
  26. 'socket': '/var/run/mysqld/mysqld.sock',
  27. 'config': '/etc/mysql/my.cnf',
  28. },
  29. 'RedHat': {
  30. 'pkgs': ['galera', 'mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync', 'percona-xtrabackup', 'psmisc', 'socat'],
  31. 'xtrabackup_repo': 'http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm',
  32. 'service': 'mariadb',
  33. 'wsrep_provider': '/usr/lib64/galera/libgalera_smm.so',
  34. 'log_file': '/var/log/mariadb/mariadb.log',
  35. 'socket': '/var/run/mariadb/mysqld.sock',
  36. 'config': '/etc/my.cnf',
  37. },
  38. }, merge=salt['pillar.get']('galera:slave')) %}