Skip to content

Commit 4a056a8

Browse files
authored
Merge pull request #1269 from baldurmen/no_cron
Use ensure_packages() to install the cron packages
2 parents 1529f91 + b03fc2c commit 4a056a8

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

manifests/backup/mysqlbackup.pp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,11 @@
6666
}
6767

6868
if $::osfamily == 'RedHat' and $::operatingsystemmajrelease == '5' {
69-
package {'crontabs':
70-
ensure => present,
71-
}
69+
ensure_packages('crontabs')
7270
} elsif $::osfamily == 'RedHat' {
73-
package {'cronie':
74-
ensure => present,
75-
}
71+
ensure_packages('cronie')
7672
} elsif $::osfamily != 'FreeBSD' {
77-
package {'cron':
78-
ensure => present,
79-
}
73+
ensure_packages('cron')
8074
}
8175

8276
cron { 'mysqlbackup-weekly':

0 commit comments

Comments
 (0)