Skip to content

Commit 313d22b

Browse files
committed
Manage the 'cron' package using ensure_package()
This makes it easier for other modules also trying to manage the 'cron' package not to conflict.
1 parent 7f9bf78 commit 313d22b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

manifests/backup/mysqlbackup.pp

+3-6
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,13 @@
6666
}
6767

6868
if $::osfamily == 'RedHat' and $::operatingsystemmajrelease == '5' {
69-
package {'crontabs':
70-
ensure => present,
69+
ensure_packages('crontabs')
7170
}
7271
} elsif $::osfamily == 'RedHat' {
73-
package {'cronie':
74-
ensure => present,
72+
ensure_packages('cronie')
7573
}
7674
} elsif $::osfamily != 'FreeBSD' {
77-
package {'cron':
78-
ensure => present,
75+
ensure_packages('cron')
7976
}
8077
}
8178

0 commit comments

Comments
 (0)