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.zfsAutorequires: 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.
aclinheritThe aclinherit property. Valid values are discard,
noallow, restricted, passthrough,
passthrough-x.
aclmodeThe aclmode property. Valid values are discard,
groupmask, passthrough.
acltypeThe acltype propery. Valid values are 'noacl' and 'posixacl'. Only supported on Linux.
atimeThe atime property. Valid values are on,
off.
canmountThe canmount property. Valid values are on,
off, noauto.
checksumThe checksum property. Valid values are on,
off, fletcher2, fletcher4,
sha256.
compressionThe compression property. Valid values are on,
off, lzjb, gzip,
gzip-[1-9], zle.
copiesThe copies property. Valid values are 1, 2,
3.
dedupThe dedup property. Valid values are on,
off.
defaultuserquotaThe defaultuserquota property. Valid values are
<size>, none.
devicesThe devices property. Valid values are on,
off.
ensureValid values: present, absent
The basic property that the resource should be in.
Default value: present
execThe exec property. Valid values are on,
off.
logbiasThe logbias property. Valid values are latency,
throughput.
mountpointThe mountpoint property. Valid values are <path>,
legacy, none.
nbmandThe nbmand property. Valid values are on,
off.
overlayThe overlay property. Valid values are on,
off.
primarycacheThe primarycache property. Valid values are all,
none, metadata.
quotaThe quota property. Valid values are <size>,
none.
readonlyThe readonly property. Valid values are on,
off.
recordsizeThe recordsize property. Valid values are powers of two between 512 and 128k.
refquotaThe refquota property. Valid values are <size>,
none.
refreservationThe refreservation property. Valid values are
<size>, none.
relatimeThe relatime property. Valid values are on,
off. Only supported on Linux
reservationThe reservation property. Valid values are <size>,
none.
secondarycacheThe secondarycache property. Valid values are all,
none, metadata.
setuidThe setuid property. Valid values are on,
off.
shareiscsiThe shareiscsi property. Valid values are on,
off, type=<type>.
sharenfsThe sharenfs property. Valid values are on,
off, share(1M) options
sharesmbThe sharesmb property. Valid values are on,
off, sharemgr(1M) options
snapdirThe snapdir property. Valid values are hidden,
visible.
syncThe sync property. Valid values are standard,
always, disabled.
versionThe version property. Valid values are 1,
2, 3, 4,
current.
volsizeThe volsize property. Valid values are <size>
vscanThe vscan property. Valid values are on,
off.
xattrThe xattr property. Valid values are on,
off.
zonedThe zoned property. Valid values are on,
off.
The following parameters are available in the zfs
type.
namenamevar
The full name for this filesystem (including the zpool).
providerThe 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.
zpoolSupports vdevs with mirrors, raidz, logs, spares, and cache.
zpool { 'tstpool':
ensure => present,
disk => '/ztstpool/dsk',
}
The following properties are available in the zpool
type.
ashiftThe Alignment Shift for the vdevs in the given pool.
autoexpandThe autoexpand setting for the given pool. Valid values are
on or off
cacheCache disks for this pool.
diskThe disk(s) for this pool. Can be an array or a space separated string.
ensureValid values: present, absent
The basic property that the resource should be in.
Default value: present
failmodeThe failmode setting for the given pool. Valid values are
wait, continue or panic
logLog disks for this pool. This type does not currently support mirroring of log disks.
mirrorList of all the devices to mirror for this pool. Each mirror should be a space separated string:
mirror => [\"disk1 disk2\", \"disk3 disk4\"],
raidzList of all the devices to raid for this pool. Should be an array of space separated strings:
raidz => [\"disk1 disk2\", \"disk3 disk4\"],
spareSpare disk(s) for this pool.
The following parameters are available in the zpool
type.
poolnamevar
The name for this pool.
providerThe 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.
raid_parityDetermines parity when using the raidz parameter.