File tree 2 files changed +28
-22
lines changed
2 files changed +28
-22
lines changed Original file line number Diff line number Diff line change 21
21
$file_per_database = false ,
22
22
$include_triggers = true ,
23
23
$include_routines = false ,
24
+ $install_cron = false ,
24
25
$ensure = ' present' ,
25
26
$time = [' 23' , ' 5' ],
26
27
$prescript = false ,
64
65
require => Mysql_user[" ${backupuser} @localhost" ],
65
66
}
66
67
67
- if $::osfamily == ' RedHat' and $::operatingsystemmajrelease == ' 5' {
68
- package {'crontabs' :
69
- ensure => present ,
70
- }
71
- } elsif $::osfamily == ' RedHat' {
72
- package {'cronie' :
73
- ensure => present ,
74
- }
75
- } elsif $::osfamily != ' FreeBSD' {
76
- package {'cron' :
77
- ensure => present ,
68
+ if $install_cron {
69
+ if $::osfamily == ' RedHat' and $::operatingsystemmajrelease == ' 5' {
70
+ package {'crontabs' :
71
+ ensure => present ,
72
+ }
73
+ } elsif $::osfamily == ' RedHat' {
74
+ package {'cronie' :
75
+ ensure => present ,
76
+ }
77
+ } elsif $::osfamily != ' FreeBSD' {
78
+ package {'cron' :
79
+ ensure => present ,
80
+ }
78
81
}
79
82
}
80
83
Original file line number Diff line number Diff line change 20
20
$file_per_database = false ,
21
21
$include_triggers = false ,
22
22
$include_routines = false ,
23
+ $install_cron = false ,
23
24
$ensure = ' present' ,
24
25
$time = [' 23' , ' 5' ],
25
26
$prescript = false ,
57
58
require => Mysql_user[" ${backupuser} @localhost" ],
58
59
}
59
60
60
- if $::osfamily == ' RedHat' and $::operatingsystemmajrelease == ' 5' {
61
- package {'crontabs' :
62
- ensure => present ,
63
- }
64
- } elsif $::osfamily == ' RedHat' {
65
- package {'cronie' :
66
- ensure => present ,
67
- }
68
- } elsif $::osfamily != ' FreeBSD' {
69
- package {'cron' :
70
- ensure => present ,
61
+ if $install_cron {
62
+ if $::osfamily == ' RedHat' and $::operatingsystemmajrelease == ' 5' {
63
+ package {'crontabs' :
64
+ ensure => present ,
65
+ }
66
+ } elsif $::osfamily == ' RedHat' {
67
+ package {'cronie' :
68
+ ensure => present ,
69
+ }
70
+ } elsif $::osfamily != ' FreeBSD' {
71
+ package {'cron' :
72
+ ensure => present ,
73
+ }
71
74
}
72
75
}
73
76
You can’t perform that action at this time.
0 commit comments