We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f89af commit 1d8d6a3Copy full SHA for 1d8d6a3
manifests/backup/mysqldump.pp
@@ -59,19 +59,13 @@
59
}
60
61
if $::osfamily == 'RedHat' and $::operatingsystemmajrelease == '5' {
62
- package {'crontabs':
63
- ensure => present,
64
- }
+ ensure_packages('crontabs')
65
} elsif $::osfamily == 'RedHat' {
66
- package {'cronie':
67
68
+ ensure_packages('cronie')
69
} elsif $::osfamily != 'FreeBSD' {
70
- package {'cron':
71
72
+ ensure_packages('cron')
73
74
-
+
75
cron { 'mysql-backup':
76
ensure => $ensure,
77
command => '/usr/local/sbin/mysqlbackup.sh',
0 commit comments