Skip to content

Commit b40098b

Browse files
jas01jas01
jas01
authored and
jas01
committed
No package under FreeBSD
With FreeBSD bzip2 as part of the system, so it's not need to install bzip2 package, and because this package doesn't exist the class go in error if it try to install that package.
1 parent 277ff26 commit b40098b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

manifests/backup/mysqldump.pp

+5-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@
3030
$mysqlbackupdir_target = undef,
3131
) inherits mysql::params {
3232

33-
if $backupcompress {
34-
ensure_packages(['bzip2'])
35-
Package['bzip2'] -> File['mysqlbackup.sh']
33+
unless $::osfamily == 'FreeBSD' {
34+
if $backupcompress {
35+
ensure_packages(['bzip2'])
36+
Package['bzip2'] -> File['mysqlbackup.sh']
37+
}
3638
}
3739

3840
mysql_user { "${backupuser}@localhost":

0 commit comments

Comments
 (0)