module-puppetlabs-mysql/templates/my.cnf.erb

53 lines
1.1 KiB
Text
Raw Normal View History

[client]
port = <%= @port %>
socket = <%= @socket %>
[mysqld_safe]
socket = <%= @socket %>
nice = 0
<% if @log_error == 'syslog' -%>
2012-11-16 20:37:14 +01:00
syslog
<% end -%>
[mysqld]
user = mysql
pid-file = <%= @pidfile %>
socket = <%= @socket %>
port = <%= @port %>
basedir = <%= @basedir %>
datadir = <%= @datadir %>
2013-06-25 23:50:06 +02:00
tmpdir = <%= @tmpdir %>
skip-external-locking
2012-07-20 02:29:28 +02:00
<% if @bind_address %>
bind-address = <%= @bind_address %>
2012-07-20 02:29:28 +02:00
<% end %>
key_buffer = 16M
2013-06-26 00:03:12 +02:00
max_allowed_packet = <%= @max_allowed_packet %>
thread_stack = 192K
thread_cache_size = 8
myisam-recover = BACKUP
query_cache_limit = 1M
query_cache_size = 16M
<% if @log_error != 'syslog' -%>
log_error = <%= @log_error %>
2012-11-16 20:37:14 +01:00
<% end -%>
expire_logs_days = 10
max_binlog_size = 100M
2013-05-29 14:16:48 +02:00
<% if @default_engine != 'UNSET' %>
default-storage-engine = <%= @default_engine %>
2012-05-15 17:55:42 +02:00
<% end %>
<% if @ssl == true %>
ssl-ca = <%= @ssl_ca %>
ssl-cert = <%= @ssl_cert %>
ssl-key = <%= @ssl_key %>
<% end %>
[mysqldump]
quick
quote-names
2013-06-26 00:03:12 +02:00
max_allowed_packet = <%= @max_allowed_packet %>
[mysql]
[isamchk]
key_buffer = 16M
!includedir /etc/mysql/conf.d/