Skip to content

Commit 9590582

Browse files
committed
Allow multiple backupmethods
At this Time, this is not possible because a dupplicate resource error occurs. With this change it is possible to generate a daily xtrabackup and also a weekly mysqldump for example.
1 parent 952afd8 commit 9590582

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

manifests/backup/mysqlbackup.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,10 @@
101101
mode => '0600',
102102
}
103103

104-
file { 'mysqlbackupdir':
104+
file { $backupdir:
105105
ensure => 'directory',
106-
path => $backupdir,
107106
mode => $backupdirmode,
108107
owner => $backupdirowner,
109108
group => $backupdirgroup,
110109
}
111-
112110
}

manifests/backup/mysqldump.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,10 @@
7070
content => template('mysql/mysqlbackup.sh.erb'),
7171
}
7272

73-
file { 'mysqlbackupdir':
73+
file { $backupdir:
7474
ensure => 'directory',
75-
path => $backupdir,
7675
mode => $backupdirmode,
7776
owner => $backupdirowner,
7877
group => $backupdirgroup,
7978
}
80-
8179
}

manifests/backup/xtrabackup.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@
6767
require => Package[$xtrabackup_package_name],
6868
}
6969

70-
file { 'mysqlbackupdir':
70+
file { $backupdir:
7171
ensure => 'directory',
72-
path => $backupdir,
7372
mode => $backupdirmode,
7473
owner => $backupdirowner,
7574
group => $backupdirgroup,

0 commit comments

Comments
 (0)