Skip to content

Commit 9ccbe3b

Browse files
authored
Merge pull request #933 from edestecd/master
Only install bzip2 if backupcompress
2 parents ef7e882 + da61707 commit 9ccbe3b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

manifests/backup/mysqldump.pp

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
$optional_args = [],
2424
) inherits mysql::params {
2525

26-
ensure_packages(['bzip2'])
26+
if $backupcompress {
27+
ensure_packages(['bzip2'])
28+
Package['bzip2'] -> File['mysqlbackup.sh']
29+
}
2730

2831
mysql_user { "${backupuser}@localhost":
2932
ensure => $ensure,
@@ -51,7 +54,7 @@
5154
user => 'root',
5255
hour => $time[0],
5356
minute => $time[1],
54-
require => [File['mysqlbackup.sh'], Package['bzip2']],
57+
require => File['mysqlbackup.sh'],
5558
}
5659

5760
file { 'mysqlbackup.sh':

0 commit comments

Comments
 (0)