1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295
|
# Reference
<!-- DO NOT EDIT: This document was generated by Puppet Strings -->
## Table of Contents
### Resource types
* [`zfs`](#zfs): Manage zfs. Create destroy and set properties on zfs instances.
* [`zpool`](#zpool): Manage zpools. Create and delete zpools. The provider WILL NOT SYNC, only report differences.
## Resource types
### <a name="zfs"></a>`zfs`
**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.
#### Examples
##### Using zfs.
```puppet
zfs { 'tstpool':
ensure => present,
}
```
#### Properties
The following properties are available in the `zfs` type.
##### `aclinherit`
The aclinherit property. Valid values are `discard`, `noallow`, `restricted`, `passthrough`, `passthrough-x`.
##### `aclmode`
The aclmode property. Valid values are `discard`, `groupmask`, `passthrough`.
##### `acltype`
The acltype propery. Valid values are 'noacl' and 'posixacl'. Only supported on Linux.
##### `atime`
The atime property. Valid values are `on`, `off`.
##### `canmount`
The canmount property. Valid values are `on`, `off`, `noauto`.
##### `checksum`
The checksum property. Valid values are `on`, `off`, `fletcher2`, `fletcher4`, `sha256`.
##### `compression`
The compression property. Valid values are `on`, `off`, `lzjb`, `gzip`, `gzip-[1-9]`, `zle`.
##### `copies`
The copies property. Valid values are `1`, `2`, `3`.
##### `dedup`
The dedup property. Valid values are `on`, `off`.
##### `defaultuserquota`
The defaultuserquota property. Valid values are `<size>`, `none`.
##### `devices`
The devices property. Valid values are `on`, `off`.
##### `ensure`
Valid values: `present`, `absent`
The basic property that the resource should be in.
Default value: `present`
##### `exec`
The exec property. Valid values are `on`, `off`.
##### `logbias`
The logbias property. Valid values are `latency`, `throughput`.
##### `mountpoint`
The mountpoint property. Valid values are `<path>`, `legacy`, `none`.
##### `nbmand`
The nbmand property. Valid values are `on`, `off`.
##### `overlay`
The overlay property. Valid values are `on`, `off`.
##### `primarycache`
The primarycache property. Valid values are `all`, `none`, `metadata`.
##### `quota`
The quota property. Valid values are `<size>`, `none`.
##### `readonly`
The readonly property. Valid values are `on`, `off`.
##### `recordsize`
The recordsize property. Valid values are powers of two between 512 and 128k.
##### `refquota`
The refquota property. Valid values are `<size>`, `none`.
##### `refreservation`
The refreservation property. Valid values are `<size>`, `none`.
##### `relatime`
The relatime property. Valid values are `on`, `off`. Only supported on Linux
##### `reservation`
The reservation property. Valid values are `<size>`, `none`.
##### `secondarycache`
The secondarycache property. Valid values are `all`, `none`, `metadata`.
##### `setuid`
The setuid property. Valid values are `on`, `off`.
##### `shareiscsi`
The shareiscsi property. Valid values are `on`, `off`, `type=<type>`.
##### `sharenfs`
The sharenfs property. Valid values are `on`, `off`, share(1M) options
##### `sharesmb`
The sharesmb property. Valid values are `on`, `off`, sharemgr(1M) options
##### `snapdir`
The snapdir property. Valid values are `hidden`, `visible`.
##### `sync`
The sync property. Valid values are `standard`, `always`, `disabled`.
##### `version`
The version property. Valid values are `1`, `2`, `3`, `4`, `current`.
##### `volsize`
The volsize property. Valid values are `<size>`
##### `vscan`
The vscan property. Valid values are `on`, `off`.
##### `xattr`
The xattr property. Valid values are `on`, `off`.
##### `zoned`
The zoned property. Valid values are `on`, `off`.
#### Parameters
The following parameters are available in the `zfs` type.
* [`name`](#-zfs--name)
* [`provider`](#-zfs--provider)
##### <a name="-zfs--name"></a>`name`
namevar
The full name for this filesystem (including the zpool).
##### <a name="-zfs--provider"></a>`provider`
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.
### <a name="zpool"></a>`zpool`
Supports vdevs with mirrors, raidz, logs, spares, and cache.
#### Examples
##### Using zpool.
```puppet
zpool { 'tstpool':
ensure => present,
disk => '/ztstpool/dsk',
}
```
#### Properties
The following properties are available in the `zpool` type.
##### `ashift`
The Alignment Shift for the vdevs in the given pool.
##### `autoexpand`
The autoexpand setting for the given pool. Valid values are `on` or `off`
##### `cache`
Cache disks for this pool.
##### `disk`
The disk(s) for this pool. Can be an array or a space separated string.
##### `ensure`
Valid values: `present`, `absent`
The basic property that the resource should be in.
Default value: `present`
##### `failmode`
The failmode setting for the given pool. Valid values are `wait`, `continue` or `panic`
##### `log`
Log disks for this pool. This type does not currently support mirroring of log disks.
##### `mirror`
List of all the devices to mirror for this pool. Each mirror should be a
space separated string:
mirror => [\"disk1 disk2\", \"disk3 disk4\"],
##### `raidz`
List of all the devices to raid for this pool. Should be an array of
space separated strings:
raidz => [\"disk1 disk2\", \"disk3 disk4\"],
##### `spare`
Spare disk(s) for this pool.
#### Parameters
The following parameters are available in the `zpool` type.
* [`pool`](#-zpool--pool)
* [`provider`](#-zpool--provider)
* [`raid_parity`](#-zpool--raid_parity)
##### <a name="-zpool--pool"></a>`pool`
namevar
The name for this pool.
##### <a name="-zpool--provider"></a>`provider`
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.
##### <a name="-zpool--raid_parity"></a>`raid_parity`
Determines parity when using the `raidz` parameter.
|