Defined Type: zfs::scrub
- Defined in:
- manifests/scrub.pp
Overview
Set up a zpool scrub cron entry.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'manifests/scrub.pp', line 25
define zfs::scrub (
Any $hour,
Any $minute,
Any $month,
Any $monthday,
Any $weekday,
String $zpool = $title,
String $user = 'root',
) {
include zfs
cron { "zpool scrub ${zpool}":
command => "zpool scrub ${zpool}",
environment => "PATH=${facts['path']}",
hour => $hour,
minute => $minute,
month => $month,
monthday => $monthday,
weekday => $weekday,
user => $user,
}
}
|