Puppet Class: zfs

Inherits:
::zfs::params
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) (defaults to: $::zfs::params::conf_dir)

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

  • kmod_type (Enum['dkms', 'kabi']) (defaults to: $::zfs::params::kmod_type)

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

  • manage_repo (Boolean) (defaults to: $::zfs::params::manage_repo)

    Whether to setup and manage external package repositories.

  • package_name (Variant[String, Array[String, 1]]) (defaults to: $::zfs::params::zfs_package_name)

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

  • service_manage (Boolean) (defaults to: $::zfs::params::service_manage)

    Whether to manage the various ZFS services.

  • zfs_arc_max (Optional[Integer[0]]) (defaults to: undef)

    Maximum size of the ARC in bytes.

  • zfs_arc_min (Optional[Integer[0]]) (defaults to: undef)

    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            = $::zfs::params::conf_dir,
  Enum['dkms', 'kabi']              $kmod_type           = $::zfs::params::kmod_type,
  Boolean                           $manage_repo         = $::zfs::params::manage_repo,
  Variant[String, Array[String, 1]] $package_name        = $::zfs::params::zfs_package_name,
  Boolean                           $service_manage      = $::zfs::params::service_manage,
  Optional[Integer[0]]              $zfs_arc_max         = undef,
  Optional[Integer[0]]              $zfs_arc_min         = undef,
) inherits ::zfs::params {

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

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