1- # vim: sts=2 ts=2 sw=2 et ai
2- #
3-
1+ # -*- coding: utf-8 -*-
2+ # vim: ft=yaml
3+ ---
44Debian :
5- {% if 'osmajorrelease' in grains and salt['grains.get']('osmajorrelease')|int >= 9 %}
6- serverpkg : mariadb-server
7- service : mariadb
8- clientpkg : mariadb-client
9- devpkg : libmariadbclient-dev
10- {% else %}
115 devpkg : libmysqlclient-dev
12- {% endif %}
136
147 config :
158 sections :
@@ -20,7 +13,7 @@ Debian:
2013 pid_file : /var/run/mysqld/mysqld.pid
2114 basedir : /usr
2215 tmpdir : /tmp
23- lc_messages_dir : /usr/share/mysql
16+ lc_messages_dir : /usr/share/mysql
2417 skip_external_locking : noarg_present
2518 bind_address : 127.0.0.1
2619 key_buffer_size : 16M
@@ -31,9 +24,9 @@ Debian:
3124 query_cache_size : 16M
3225 expire_logs_days : 10
3326 max_binlog_size : 100M
34- # innodb_flush_log_at_trx_commit: 1
35- # innodb_lock_wait_timeout: 50
36- # innodb_file_per_table: noarg_present
27+ # innodb_flush_log_at_trx_commit: 1
28+ # innodb_lock_wait_timeout: 50
29+ # innodb_file_per_table: noarg_present
3730 mysqldump :
3831 quick : noarg_present
3932 quote_names : noarg_present
@@ -42,31 +35,18 @@ Debian:
4235 key_buffer_size : 16M
4336 append : |
4437 !includedir /etc/mysql/conf.d/
45- # {% if 'osmajorrelease' in grains and salt['grains.get']('osmajorrelease')|int >= 9 -%}
46- # !includedir /etc/mysql/mariadb.conf.d/
47- # {%- endif %}
4838
4939RedHat :
50- # https://mariadb.com/blog/rhel7-transition-mysql-mariadb-first-look
51- {%- if 'osmajorrelease' in grains and salt['grains.get']('osmajorrelease')|int in [7] %}
52- {% set fork = 'mariadb' %}
53- serverpkg : mariadb-server
54- service : mariadb
55- devpkg : mariadb-devel
56- {%- else %}
57- {% set fork = 'mysql' %}
5840 service : mysqld
59- {%- endif %}
60-
61- clientpkg : {{ fork }}
41+ clientpkg : mysql
6242 pythonpkg : MySQL-python
6343 config :
6444 file : /etc/my.cnf
6545 sections :
6646 client :
6747 mysqld_safe :
68- log_error : /var/log/{{ fork }} /mysqld.log
69- pid_file : /var/run/{{ fork }} /mysqld.pid
48+ log_error : /var/log/mysql /mysqld.log
49+ pid_file : /var/run/mysql /mysqld.pid
7050 mysqld :
7151 socket : /var/lib/mysql/mysql.sock
7252 bind_address : 127.0.0.1
@@ -75,12 +55,7 @@ RedHat:
7555Suse :
7656 serverpkg : mariadb
7757 clientpkg : mariadb-client
78- {%- if 'osmajorrelease' in grains and salt['grains.get']('osmajorrelease')|int == 42 %}
79- # "old" package name up to Leap 42.x
80- pythonpkg : python-PyMySQL
81- {% else %}
8258 pythonpkg : python2-pymysql
83- {% endif %}
8459
8560 config :
8661 file : /etc/my.cnf
@@ -91,10 +66,10 @@ Suse:
9166 port :
9267 user :
9368 socket :
94- datadir :
69+ datadir :
9570 tmpdir :
9671 innodb_file_format : Barracuda
97- innodb_file_per_table : ON
72+ innodb_file_per_table : ' ON '
9873 server-id : 1
9974 sql_mode : NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
10075 mysqld_multi :
@@ -178,7 +153,7 @@ Gentoo:
178153 default_character_set : utf8
179154 myisamchk :
180155 character_sets_dir : /usr/share/mysql/charsets
181- key_buffer : 20M # #????? key_buffer_size ?
156+ key_buffer : 20M # # ????? key_buffer_size ?
182157 sort_buffer_size : 20M
183158 read_buffer : 2M
184159 write_buffer : 2M
@@ -188,7 +163,8 @@ Gentoo:
188163 err_log : /var/log/mysql/mysql.err
189164 mysqld :
190165 character_set_serverpkg : utf8
191- # note: the gentoo init.d script specifically needs pid-file (dash not underscore)
166+ # note: the gentoo init.d script specifically needs pid-file
167+ # (dash not underscore)
192168 pid-file : /var/run/mysqld/mysqld.pid
193169 log_error : /var/log/mysql/mysqld.err
194170 basedir : /usr
@@ -217,7 +193,7 @@ Gentoo:
217193 innodb_lock_wait_timeout : 50
218194 innodb_file_per_table : noarg_present
219195 isamchk :
220- key_buffer : 20M # #????? key_buffer_size ?
196+ key_buffer : 20M # # ????? key_buffer_size ?
221197 sort_buffer_size : 20M
222198 read_buffer : 2M
223199 write_buffer : 2M
0 commit comments