daxroc / chef-autofs

autofs cookbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stories in Ready AutoFS Cookbook

Build Status

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

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

License and Author

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.

About

autofs cookbook

License:Apache License 2.0


Languages

Language:Ruby 100.0%