diff --git a/manifests/init.pp b/manifests/init.pp index 3632855fb42c6618242a47235995501aae641422..78afe9badfd86bb1a773424b93acb28538ac828c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -45,7 +45,7 @@ class skadereg( - $mysql_password + $mysql_password, $mysql_backup_password ){ ::users::liu_user { 'andal699': commonname => 'Andreas Alvarsson', @@ -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'], + } + }