Skip to content

Commit 1d8d6a3

Browse files
authored
Handle cron package from different module
based on this puppetlabs#1269
1 parent 23f89af commit 1d8d6a3

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

manifests/backup/mysqldump.pp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,13 @@
5959
}
6060

6161
if $::osfamily == 'RedHat' and $::operatingsystemmajrelease == '5' {
62-
package {'crontabs':
63-
ensure => present,
64-
}
62+
ensure_packages('crontabs')
6563
} elsif $::osfamily == 'RedHat' {
66-
package {'cronie':
67-
ensure => present,
68-
}
64+
ensure_packages('cronie')
6965
} elsif $::osfamily != 'FreeBSD' {
70-
package {'cron':
71-
ensure => present,
72-
}
66+
ensure_packages('cron')
7367
}
74-
68+
7569
cron { 'mysql-backup':
7670
ensure => $ensure,
7771
command => '/usr/local/sbin/mysqlbackup.sh',

0 commit comments

Comments
 (0)