Commit 76a9334a authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Enable logrotate for mysql dump.

parent 3cddd124
# File managed by Puppet
# All local changes WILL be overwritten
/var/lib/mysql-dump/fulldump.sql {
daily
rotate 7
compress
}
......@@ -60,6 +60,14 @@ class datorhandbok (
mode => '0755',
}
ensure_packages (['logrotate'],
{ ensure => installed })
file { '/etc/logrotate.d/datorhandbok-mysql':
ensure => file,
source => 'puppet:///modules/datorhandbok/logrotate',
}
file { '/var/lib/mysql-dump/run.sh':
ensure => file,
chmod => '0755',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment