瀏覽代碼

Fix wsrep_provider for redhat

tags/1.0
Filip Pytloun 8 年之前
父節點
當前提交
a3567b8faa
共有 3 個文件被更改,包括 8 次插入4 次删除
  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 查看文件

@@ -83,7 +83,7 @@ lower_case_table_names=0
##

# 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 }}
# Provider specific configuration options

+ 1
- 1
galera/files/my.cnf.init 查看文件

@@ -83,7 +83,7 @@ lower_case_table_names=0
##

# 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 }}
# Provider specific configuration options

+ 6
- 2
galera/map.jinja 查看文件

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

Loading…
取消
儲存