This module makes it easy to manage ZFS filesystems and their mountpoints.
See blog post for details: Zfsdir: Simple ZFS management with Puppet
zfsdir { 'rpool/test': ensure => 'present', zfs => { recordsize => '16K', mountpoint => "/test", compression => "on", }, file => { owner => 'mzach', group => 'bin' }, } For use with hiera, one could define a nested hash in the following form (e.g. in YAML):
--- zfsdirs: rpool/testfs: zfs: recordsize: 8K mountpoint: /testfs compression: "on" file: owner: nobody group: bin rpool/test2 zfs: mountpoint: /test2 file: mode: 0777 The resources are constructed with the create_resources function from hiera:
$zfsdirs = hiera_hash('zfsdirs',{}) create_resources(zfsdir, $zfsdirs) Tested on:
- Solaris 11
- More tests
- Deal with file-user dependency
- Make module ready for Puppet Forge