cookbook 'autofs', '= 0.2.2'
autofs
(25) Versions
0.2.2
-
Follow4
Installs/Configures autofs Server
cookbook 'autofs', '= 0.2.2', :supermarket
knife supermarket install autofs
knife supermarket download autofs
AutoFS Cookbook
The AutoFS cookbook is a library cookbook that provides resource primitives for
use in recipes.
Scope
This cookbook configures clients that use autofs
See: http://linux.die.net/man/8/automount
This cookbook does not concern itself with managing an NFS server.
Requirements
- Chef 12 or higher
- Ruby 1.9 or higher (preferably from the Chef full-stack installer)
- Network accessible package repositories
Platform
- Debian, Ubuntu
- CentOS, Red Hat
Usage
Resources
this cookbook provides the nfs
resource
```
include_recipe 'autofs'
autofs_nfs '/mnt/nfs' do
mount_point '/mnt/nfs'
server 'tinynfs-server.home'
export '/example/remote_path/'
mount_options '-fstype=nfs3'
end
```
This will add the following entry to /etc/auto.nfs
/mnt/nfs tinynfs-server.home:/example/remote_path/ -fstype=nfs3
Attributes
/etc/auto.master
can be altered directly via an attribute
node['autofs']['auto_master_entries'] = ['/mnt/nfs /awesome/server']
include_recipe 'autofs'
License and Author
- Author: Dan Webb (d.webb@derby.ac.uk)
- Author: Luke Bradbury (luke.bradbury@derby.ac.uk)
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.
AutoFS Cookbook CHANGELOG
v0.2.2 (2015-03-12)
Bugs #4 & #5 fixed and small amount of rubocop.
v0.2.0 (2015-02-27)
Refactored entire cookbook to a resource model.
This now uses the resource cookbook which is currently under active development.
https://github.com/chef-cookbooks/resource
Cookbook now supports less platforms as there are currently no tests for SmartOS and Solaris2. If you would like support for these platform, please submit a PR respective tests.
Foodcritic Metric
0.2.2 failed this metric
FC016: LWRP does not declare a default action: /tmp/cook/f2fb1de41ae920f65620e029/autofs/resources/nfs.rb:1
FC031: Cookbook without metadata file: /tmp/cook/f2fb1de41ae920f65620e029/autofs/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/f2fb1de41ae920f65620e029/autofs/metadata.rb:1
0.2.2 failed this metric
FC031: Cookbook without metadata file: /tmp/cook/f2fb1de41ae920f65620e029/autofs/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/f2fb1de41ae920f65620e029/autofs/metadata.rb:1