Mercurial > repos > other > Puppet
comparison modules/website/manifests/mysql.pp @ 4:894e6287926f
Fix "slow query" log - previously MySQL didn't have permission to write it
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 27 Aug 2014 13:46:07 +0000 |
parents | b0a6f4b93e10 |
children | f2056be70cb8 |
comparison
equal
deleted
inserted
replaced
3:ea71652452e9 | 4:894e6287926f |
---|---|
21 'join_buffer_size' => '262144', #256K | 21 'join_buffer_size' => '262144', #256K |
22 'tmp_table_size' => '48M', | 22 'tmp_table_size' => '48M', |
23 'max_heap_table_size' => '48M', | 23 'max_heap_table_size' => '48M', |
24 'table_open_cache' => '500', | 24 'table_open_cache' => '500', |
25 'slow_query_log' => '1', | 25 'slow_query_log' => '1', |
26 'slow_query_log_file' => '/var/log/mysql-slow-query.log', | 26 'slow_query_log_file' => '/var/log/mysql/slow-query.log', |
27 } | 27 } |
28 }, | 28 }, |
29 require => File['/var/log/mysql/'] | |
30 } | |
31 file { '/var/log/mysql': | |
32 ensure => directory, | |
33 owner => 'mysql', | |
34 group => 'mysql', | |
29 } | 35 } |
30 $username = strip($mysqluser) | 36 $username = strip($mysqluser) |
31 $password = strip($mysqlpassword) | 37 $password = strip($mysqlpassword) |
32 $configured_marker = '/etc/mysql/.is-configured' | 38 $configured_marker = '/etc/mysql/.is-configured' |
33 exec { 'Rename root MySQL user for security': | 39 exec { 'Rename root MySQL user for security': |