module-puppetlabs-mysql/templates/my.cnf.erb
2013-04-04 14:02:58 +04:00

58 lines
1.2 KiB
Text

[client]
port = <%= port %>
socket = <%= socket %>
<% if character_set != 'UNSET' %>
default-character-set = <%= character_set %>
<% end -%>
[mysqld_safe]
socket = <%= socket %>
nice = 0
<% if log_error == 'syslog' -%>
syslog
<% end -%>
[mysqld]
user = mysql
pid-file = <%= pidfile %>
socket = <%= socket %>
port = <%= port %>
basedir = <%= basedir %>
datadir = <%= datadir %>
tmpdir = /tmp
skip-external-locking
<% if bind_address %>
bind-address = <%= bind_address %>
<% end %>
key_buffer = 16M
max_allowed_packet = 16M
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 %>
<% end -%>
expire_logs_days = 10
max_binlog_size = 100M
<% if default_engine != 'UNSET' %>
default-storage-engine = <%= default_engine %>
<% end %>
<% if character_set != 'UNSET' %>
character-set-server = <%= character_set %>
<% end %>
<% if ssl == true %>
ssl-ca = <%= ssl_ca %>
ssl-cert = <%= ssl_cert %>
ssl-key = <%= ssl_key %>
<% end %>
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
[isamchk]
key_buffer = 16M
!includedir /etc/mysql/conf.d/