Bläddra i källkod

Use /var/run/mariadb on redhat

tags/1.0
Filip Pytloun 8 år sedan
förälder
incheckning
ca245cc1a7
4 ändrade filer med 18 tillägg och 14 borttagningar
  1. +4
    -4
      galera/files/my.cnf
  2. +4
    -4
      galera/files/my.cnf.bootstrap
  3. +4
    -4
      galera/files/my.cnf.init
  4. +6
    -2
      galera/map.jinja

+ 4
- 4
galera/files/my.cnf Visa fil

@@ -13,7 +13,7 @@
user=mysql
basedir=/usr/
datadir=/var/lib/mysql
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
pid_file=mysqld.pid
port=3306
log_error={{ service.log_file }}
@@ -173,14 +173,14 @@ wsrep_sst_auth={{ service.admin.user }}:{{ service.admin.password }}
# Protocol version to use
# wsrep_protocol_version=
[MYSQL]
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
#default_character_set=utf8
[client]
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
default_character_set=utf8
[mysqldump]
max_allowed_packet = 512M
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
default_character_set=utf8
[MYSQLD_SAFE]
pid_file=mysqld.pid

+ 4
- 4
galera/files/my.cnf.bootstrap Visa fil

@@ -13,7 +13,7 @@
user=mysql
basedir=/usr/
datadir=/var/lib/mysql
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
pid_file=mysqld.pid
port=3306
log_error={{ service.log_file }}
@@ -86,14 +86,14 @@ lower_case_table_names=0
# Protocol version to use
# wsrep_protocol_version=
[MYSQL]
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
#default_character_set=utf8
[client]
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
default_character_set=utf8
[mysqldump]
max_allowed_packet = 512M
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
default_character_set=utf8
[MYSQLD_SAFE]
pid_file=mysqld.pid

+ 4
- 4
galera/files/my.cnf.init Visa fil

@@ -13,7 +13,7 @@
user=mysql
basedir=/usr/
datadir=/var/lib/mysql
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
pid_file=mysqld.pid
port=3306
log_error={{ service.log_file }}
@@ -172,14 +172,14 @@ wsrep_sst_auth={{ service.admin.user }}:{{ service.admin.password }}
# Protocol version to use
# wsrep_protocol_version=
[MYSQL]
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
#default_character_set=utf8
[client]
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
default_character_set=utf8
[mysqldump]
max_allowed_packet = 512M
socket=/var/run/mysqld/mysqld.sock
socket={{ service.socket }}
default_character_set=utf8
[MYSQLD_SAFE]
pid_file=mysqld.pid

+ 6
- 2
galera/map.jinja Visa fil

@@ -5,13 +5,15 @@
'service': 'mysql',
'wsrep_provider': '/usr/lib/galera/libgalera_smm.so',
'log_file': '/var/log/mysql.log',
'socket': '/var/run/mysqld/mysqld.sock',
'config': '/etc/mysql/my.cnf',
},
'RedHat': {
'pkgs': ['galera', 'mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync'],
'pkgs': ['galera', 'mariadb-server', 'mariadb', 'MySQL-python', 'rsync'],
'service': 'mysqld',
'wsrep_provider': '/usr/lib64/galera/libgalera_smm.so',
'log_file': '/var/log/mariadb/mariadb.log',
'socket': '/var/run/mariadb/mysqld.sock',
'config': '/etc/my.cnf',
},
}, merge=salt['pillar.get']('galera:master')) %}
@@ -22,13 +24,15 @@
'service': 'mysql',
'wsrep_provider': '/usr/lib/galera/libgalera_smm.so',
'log_file': '/var/log/mysql.log',
'socket': '/var/run/mysqld/mysqld.sock',
'config': '/etc/mysql/my.cnf',
},
'RedHat': {
'pkgs': ['galera', 'mariadb-galera-server', 'mariadb', 'MySQL-python', 'rsync'],
'pkgs': ['galera', 'mariadb-server', 'mariadb', 'MySQL-python', 'rsync'],
'service': 'mysqld',
'wsrep_provider': '/usr/lib64/galera/libgalera_smm.so',
'log_file': '/var/log/mariadb/mariadb.log',
'socket': '/var/run/mariadb/mysqld.sock',
'config': '/etc/my.cnf',
},
}, merge=salt['pillar.get']('galera:slave')) %}

Laddar…
Avbryt
Spara