autofs

A module to enable configuration of AutoFS mounts

MAD Hacking

hacking

9,293 downloads

8,246 latest version

4.8 quality score

Version information

  • 0.2.2 (latest)
  • 0.2.1
  • 0.2.0
  • 0.1.0
released Jun 18th 2015
This version is compatible with:
  • Gentoo, Debian, Solaris, RedHat

Start using this module

Tags: autofs

Documentation

hacking/autofs — version 0.2.2 Jun 18th 2015

Autofs module for Puppet

Description

Puppet module for managing Autofs mountpoints and files.

Some Contrived Example usage

autofs::include { 'portage': mount_base => '/mnt/auto/portage', options => '--timeout=30 --ghost', }

autofs::mount { 'distfiles':
    device  => "portage:/mnt/repositories/distfiles",
    options => 'rsize=8192,wsize=8192,soft,timeo=30,rw,vers=3',
    mapfile => 'portage',
}

autofs::mount { 'packages':
    device  => "portage:/mnt/repositories/packages",
    options => 'rsize=8192,wsize=8192,soft,timeo=30,ro,vers=3',
    mapfile => 'portage',
}

Resulting files

/etc/autofs/auto.master

# This file is automatically generated by Puppet
#
# Any changes made to this file will be lost on the next automated Puppet run!

/mnt/auto/portage /etc/autofs/auto.portage --timeout=30 --ghost

/etc/autofs/auto.portage

# This file is automatically generated by Puppet
#
# Any changes made to this file will be lost on the next automated Puppet run!

distfiles -rsize=8192,wsize=8192,soft,timeo=30,ro,vers=3 portage:/mnt/repositories/distfiles
packages -rsize=8192,wsize=8192,soft,timeo=30,ro,vers=3 portage:/mnt/repositories/packages