Browse Source

add missing files/templates.

devel
Bernd Zeimetz 3 years ago
parent
commit
9e24039975
2 changed files with 43 additions and 0 deletions
  1. 28
    0
      files/server/percona-server.logrotate
  2. 15
    0
      templates/server/debian_cnf.erb

+ 28
- 0
files/server/percona-server.logrotate View File

@@ -0,0 +1,28 @@
### MANAGED BY PUPPET
# - I put everything in one block and added sharedscripts, so that mysql gets
# flush-logs'd only once.
# Else the binary logs would automatically increase by n times every day.
/var/log/mysql.log /var/log/mysql/*.log {
daily
rotate 30
missingok
create 640 mysql adm
compress
sharedscripts
postrotate
test -x /usr/bin/mysqladmin || exit 0
# If this fails, check debian.conf!
MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
if [ -z "`$MYADMIN ping 2>/dev/null`" ]; then
# Really no mysqld or rather a missing debian-sys-maint user?
# If this occurs and is not a error please report a bug.
#if ps cax | grep -q mysqld; then
if killall -q -s0 -umysql mysqld; then
exit 1
fi
else
$MYADMIN flush-logs
fi
endscript
}


+ 15
- 0
templates/server/debian_cnf.erb View File

@@ -0,0 +1,15 @@
# MANAGED BY PUPPET
# DO NOT EDIT
# SYNCHRONIZED ON MYSQL CLUSTER AUTOMATICALLY!!!
[client]
host = localhost
user = debian-sys-maint
password = <%= @debian_password %>
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = <%= @debian_password %>
socket = /var/run/mysqld/mysqld.sock
basedir = /usr


Loading…
Cancel
Save