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.0.3 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' do
map '/etc/auto.smb'
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 ([email protected])
- Author: Luke Bradbury ([email protected])
- Author: Richard Lock ([email protected])
- Author: James E. Flemer ([email protected])
Copyright: 2016, University of Derby
Copyright: 2018, NDP, LLC
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.