cookbook 'nfs4acl', '= 0.1.0'
nfs4acl (4) Versions 0.1.0 Follow0
Provides nfs4_setfacl resource
cookbook 'nfs4acl', '= 0.1.0', :supermarket
knife supermarket install nfs4acl
knife supermarket download nfs4acl
nfs4acl Chef cookbook
The nfs4acl cookbook provides the nfs4_setfacl custom resource.
Requirements
- Chef 12.5 or higher
- Ruby 2.0 or higher (preferably from the Chef full-stack installer)
- Network accessible package repositories
Packages
-
nfs4-acl-tools
- nfs4acl needsnfs4_getfacl
andnfs4_setfacl
commands.
Platform Support
The following platforms have been tested with Test Kitchen:
- CentOS
- Red Hat
Usage
metadata.rb
Include nfs4acl
as a dependency in your cookbook's metadata.rb
.
depends 'nfs4acl', '= 0.1.0'
nfs4acl::default
Default recipe is blank.
Resources
Define a nfs4_setfacl
resource in a recipe to set an ACL on a NFS4 mounted file/directory.
Specify the file/directory path as the resource name and the ACL as an array of strings.
nfs4_setfacl '/tmp/test_file_or_dir' do
acl [
'A::OWNER@:rwaDxtTnNcCy',
'D::OWNER@:o',
'A:g:GROUP@:rxtncy',
'D:g:GROUP@:waDTNCo',
'A::EVERYONE@:rxtncy',
'D::EVERYONE@:waDTNCo'
]
end
Contributing
- Fork the repository on Github.
- Create a named feature branch (like
add_component_x
). - Write your change.
- Write tests for your change (if applicable).
- Run the tests, ensuring they all pass.
- Submit a Pull Request using Github.
License and Authors
Author: Richard Lock (University of Derby)
Copyright 2015 University of Derby
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
nfs4acl Cookbook CHANGELOG
0.1.0 (2015-12-15)
- Richard Lock - Initial release of nfs4acl
Foodcritic Metric
0.1.0 passed this metric
0.1.0 passed this metric