zfs
: Manage zfs. Create destroy and set properties on zfs instances.zpool
: Manage zpools. Create and delete zpools. The provider WILL NOT SYNC, only report differences.
Autorequires: If Puppet is managing the zpool at the root of this zfs instance, the zfs resource will autorequire it. If Puppet is managing any parent zfs instances, the zfs resource will autorequire them.
zfs { 'tstpool':
ensure => present,
}
The following properties are available in the zfs
type.
The aclinherit property. Valid values are discard
, noallow
, restricted
, passthrough
, passthrough-x
.
The aclmode property. Valid values are discard
, groupmask
, passthrough
.
The acltype propery. Valid values are 'noacl' and 'posixacl'. Only supported on Linux.
The atime property. Valid values are on
, off
.
The canmount property. Valid values are on
, off
, noauto
.
The checksum property. Valid values are on
, off
, fletcher2
, fletcher4
, sha256
.
The compression property. Valid values are on
, off
, lzjb
, gzip
, gzip-[1-9]
, zle
.
The copies property. Valid values are 1
, 2
, 3
.
The dedup property. Valid values are on
, off
.
The defaultuserquota property. Valid values are <size>
, none
.
The devices property. Valid values are on
, off
.
Valid values: present
, absent
The basic property that the resource should be in.
Default value: present
The exec property. Valid values are on
, off
.
The logbias property. Valid values are latency
, throughput
.
The mountpoint property. Valid values are <path>
, legacy
, none
.
The nbmand property. Valid values are on
, off
.
The overlay property. Valid values are on
, off
.
The primarycache property. Valid values are all
, none
, metadata
.
The quota property. Valid values are <size>
, none
.
The readonly property. Valid values are on
, off
.
The recordsize property. Valid values are powers of two between 512 and 128k.
The refquota property. Valid values are <size>
, none
.
The refreservation property. Valid values are <size>
, none
.
The relatime property. Valid values are on
, off
. Only supported on Linux
The reservation property. Valid values are <size>
, none
.
The secondarycache property. Valid values are all
, none
, metadata
.
The setuid property. Valid values are on
, off
.
The shareiscsi property. Valid values are on
, off
, type=<type>
.
The sharenfs property. Valid values are on
, off
, share(1M) options
The sharesmb property. Valid values are on
, off
, sharemgr(1M) options
The snapdir property. Valid values are hidden
, visible
.
The sync property. Valid values are standard
, always
, disabled
.
The version property. Valid values are 1
, 2
, 3
, 4
, current
.
The volsize property. Valid values are <size>
The vscan property. Valid values are on
, off
.
The xattr property. Valid values are on
, off
.
The zoned property. Valid values are on
, off
.
The following parameters are available in the zfs
type.
namevar
The full name for this filesystem (including the zpool).
The specific backend to use for this zfs
resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.
Supports vdevs with mirrors, raidz, logs, spares, and cache.
zpool { 'tstpool':
ensure => present,
disk => '/ztstpool/dsk',
}
The following properties are available in the zpool
type.
The Alignment Shift for the vdevs in the given pool.
The autoexpand setting for the given pool. Valid values are on
or off
Cache disks for this pool.
The disk(s) for this pool. Can be an array or a space separated string.
Valid values: present
, absent
The basic property that the resource should be in.
Default value: present
The failmode setting for the given pool. Valid values are wait
, continue
or panic
Log disks for this pool. This type does not currently support mirroring of log disks.
List of all the devices to mirror for this pool. Each mirror should be a space separated string:
mirror => [\"disk1 disk2\", \"disk3 disk4\"],
List of all the devices to raid for this pool. Should be an array of space separated strings:
raidz => [\"disk1 disk2\", \"disk3 disk4\"],
Spare disk(s) for this pool.
The following parameters are available in the zpool
type.
namevar
The name for this pool.
The specific backend to use for this zpool
resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.
Determines parity when using the raidz
parameter.