Puppet Class: zfs::zpool_scrub

Defined in:
manifests/zpool_scrub.pp

Overview

Class: zfs_freebsd::zpool_scrub A class to run ZFS scrubbing

Parameters:

  • ensure (Any) (defaults to: present)
  • threshold (Any) (defaults to: 30)


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/zpool_scrub.pp', line 5

class zfs::zpool_scrub (
  $ensure = present,
  $threshold = 30
){
  Exec {
    path => '/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin'
  }

  freebsd::periodic_config { 'daily_scrub_zfs_enable':
    ensure => $ensure,
    value  => 'YES',
  }

  freebsd::periodic_config { 'daily_scrub_zfs_default_threshold':
    ensure => $ensure,
    value  => $threshold
  }
}