Skip to content
Snippets Groups Projects
Commit 24850643 authored by Mika Perälä's avatar Mika Perälä
Browse files

MySQL backup enabled

parent 092d5caa
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
class skadereg( class skadereg(
$mysql_password $mysql_password, $mysql_backup_password
){ ){
::users::liu_user { 'andal699': ::users::liu_user { 'andal699':
commonname => 'Andreas Alvarsson', commonname => 'Andreas Alvarsson',
...@@ -160,4 +160,16 @@ class skadereg( ...@@ -160,4 +160,16 @@ class skadereg(
} }
} }
} }
class { '::mysql::server::backup':
backupuser => 'backupuser',
backuppassword => $mysql_backup_password,
backupdir => '/root/mysql_backups',
backupdirmode => '700',
backupdirowner => 'root',
backupdirgroup => 'root',
backuprotate => '7',
time => ['1','0'],
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment