Browse Source

Fix wsrep_provider for redhat

tags/1.0
Filip Pytloun 8 years ago
parent
commit
a3567b8faa
3 changed files with 8 additions and 4 deletions
  1. +1
    -1
      galera/files/my.cnf
  2. +1
    -1
      galera/files/my.cnf.init
  3. +6
    -2
      galera/map.jinja

+ 1
- 1
galera/files/my.cnf View File

## ##


# Full path to wsrep provider library or 'none' # Full path to wsrep provider library or 'none'
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_provider={{ service.wsrep_provider }}


wsrep_node_address={{ service.bind.address }} wsrep_node_address={{ service.bind.address }}
# Provider specific configuration options # Provider specific configuration options

+ 1
- 1
galera/files/my.cnf.init View File

## ##


# Full path to wsrep provider library or 'none' # Full path to wsrep provider library or 'none'
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_provider={{ service.wsrep_provider }}


wsrep_node_address={{ service.bind.address }} wsrep_node_address={{ service.bind.address }}
# Provider specific configuration options # Provider specific configuration options

+ 6
- 2
galera/map.jinja View File

'Debian': { 'Debian': {
'pkgs': ['mysql-server-wsrep', 'galera', 'rsync', 'python-mysqldb', 'libmysqlclient18', 'psmisc', 'netcat', 'percona-xtrabackup-21', 'socat'], 'pkgs': ['mysql-server-wsrep', 'galera', 'rsync', 'python-mysqldb', 'libmysqlclient18', 'psmisc', 'netcat', 'percona-xtrabackup-21', 'socat'],
'service': 'mysql', 'service': 'mysql',
'wsrep_provider': '/usr/lib/galera/libgalera_smm.so',
'log_file': '/var/log/mysql.log', 'log_file': '/var/log/mysql.log',
'config': '/etc/mysql/my.cnf', 'config': '/etc/mysql/my.cnf',
}, },
'RedHat': { 'RedHat': {
'pkgs': ['mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync'],
'pkgs': ['galera', 'mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync'],
'service': 'mysqld', 'service': 'mysqld',
'wsrep_provider': '/usr/lib64/galera/libgalera_smm.so',
'log_file': '/var/log/mariadb/mariadb.log', 'log_file': '/var/log/mariadb/mariadb.log',
'config': '/etc/my.cnf', 'config': '/etc/my.cnf',
}, },
'Debian': { 'Debian': {
'pkgs': ['mysql-server-wsrep', 'galera', 'rsync', 'python-mysqldb', 'libmysqlclient18', 'psmisc', 'netcat', 'percona-xtrabackup-21', 'socat'], 'pkgs': ['mysql-server-wsrep', 'galera', 'rsync', 'python-mysqldb', 'libmysqlclient18', 'psmisc', 'netcat', 'percona-xtrabackup-21', 'socat'],
'service': 'mysql', 'service': 'mysql',
'wsrep_provider': '/usr/lib/galera/libgalera_smm.so',
'log_file': '/var/log/mysql.log', 'log_file': '/var/log/mysql.log',
'config': '/etc/mysql/my.cnf', 'config': '/etc/mysql/my.cnf',
}, },
'RedHat': { 'RedHat': {
'pkgs': ['mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync'],
'pkgs': ['galera', 'mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync'],
'service': 'mysqld', 'service': 'mysqld',
'wsrep_provider': '/usr/lib64/galera/libgalera_smm.so',
'log_file': '/var/log/mariadb/mariadb.log', 'log_file': '/var/log/mariadb/mariadb.log',
'config': '/etc/my.cnf', 'config': '/etc/my.cnf',
}, },

Loading…
Cancel
Save