The AutoFS cookbook is a library cookbook that provides resource primitives for use in recipes.
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.
- Chef 12 or higher
- Ruby 1.9 or higher (preferably from the Chef full-stack installer)
- Network accessible package repositories
- Debian, Ubuntu
- CentOS, Red Hat
Add entries directly to auto.master
automaster_entry '/smb', '/etc/auto.smb' do
options '--timeout 600'
end
Add entries to custom autofs map file
map_entry 'homes' do
location '://smb-server:directory'
fstype 'smb'
options 'rw'
map '/etc/auto.smb'
end
Nfs resource with default entries for map & auto.master
nfs '/mnt/nfs' do
server 'nfsserver'
export '/example/remote_path/'
options 'sync'
end
- 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.