Skip to content

Commit b03fc2c

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 b03fc2c

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)