Puppet Class: zfs

Defined in:
manifests/init.pp

Overview

Installs basic ZFS kernel and userland support.

Examples:

Declaring the class

include zfs

Tuning the ZFS ARC

class { 'zfs':
  zfs_arc_max => to_bytes('256 M'),
  zfs_arc_min => to_bytes('128 M'),
}

Parameters:

  • conf_dir (Stdlib::Absolutepath)

    Top-level configuration directory, usually /etc/zfs.

  • kmod_type (Enum['dkms', 'kabi'])

    Whether to use DKMS kernel packages or ones built to match the running kernel (only applies to RHEL platforms).

  • manage_repo (Boolean)

    Whether to setup and manage external package repositories.

  • package_name (Variant[String, Array[String, 1]])

    The name of the top-level metapackage that installs ZFS support.

  • service_manage (Boolean)

    Whether to manage the various ZFS services.

  • zfs_arc_max (Optional[Integer[0]])

    Maximum size of the ARC in bytes.

  • zfs_arc_min (Optional[Integer[0]])

    Minimum size of the ARC in bytes.

See Also:



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'manifests/init.pp', line 24

class zfs (
  Stdlib::Absolutepath              $conf_dir,
  Enum['dkms', 'kabi']              $kmod_type,
  Boolean                           $manage_repo,
  Variant[String, Array[String, 1]] $package_name,
  Boolean                           $service_manage,
  Optional[Integer[0]]              $zfs_arc_max,
  Optional[Integer[0]]              $zfs_arc_min,
) {

  contain zfs::install
  contain zfs::config
  contain zfs::service

  Class['zfs::install'] ~> Class['zfs::config'] ~> Class['zfs::service']
}