Resource Type: zfs_acl
- Defined in:
- lib/puppet/type/zfs_acl.rb
- Providers:
-
zfs_acl
Overview
Manage NFSv4 ACL Specifications on ZFS Files. See chmod(1), acl(7)
Simple examples:
This is a contrived example to show setting permissions equavalent to 755 it could be more easily acomplished via the File provider. Once any acl customization is required all permissions must be managed via this provider.
zfs_acl { '/root/foo':
ensure => 'present',
acl => [
{
'target' => 'owner@',
'perm_type' => 'allow',
'perms' => ['read_data', 'write_data', 'append_data', 'execute'],
},
{
'target' => 'group@',
'perm_type' => 'allow',
'perms' => ['read_data', 'execute'],
},
{
'target' => 'everyone@',
'perm_type' => 'allow',
'perms' => ['read_data', 'execute'],
},
],
}
The following example sets permissions equavalent to 755 and also grants the full set of permissions to user jack but removes the write_acl permission. The *_set permissions are expended internally and applied individually.
zfs_acl { '/root/foo':
ensure => 'present',
acl => [
{
'target' => 'user:jack',
'perm_type' => 'deny',
'perms' => 'write_acl',
},
{
'target' => 'user:jack',
'perm_type' => 'allow',
'perms' => 'full_set',
},
{
'target' => 'owner@',
'perm_type' => 'allow',
'perms' => ['read_data', 'write_data', 'append_data', 'execute'],
},
{
'target' => 'group@',
'perm_type' => 'allow',
'perms' => ['read_data', 'execute'],
},
{
'target' => 'everyone@',
'perm_type' => 'allow',
'perms' => ['read_data', 'execute'],
},
],
}
Autorequires: If Puppet is managing the file of a zfs_acl resource or the user or group of an ACE, the zfs_acl type will autorequire them.
Note: Use of the File provider to manage permissions in addition to this type may result in changes being applied at every catalog application.