Forge Home

fstab

A lightweight puppet module for managing fstab mounts and server exports

51,543 downloads

51,543 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.0.0 (latest)
released Sep 11th 2015
This version is compatible with:
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'ceh-fstab', '1.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ceh-fstab
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ceh-fstab --version 1.0.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

ceh/fstab — version 1.0.0 Sep 11th 2015

puppet-fstab

A lightweight puppet module for managing fstab mounts and server exports

Module Description

This puppet module will allow the managment of nfs and cifs mounts and exports. It does this by backing on to the puppet Mount type, it will also ensure that a mount point in the filesystem already exists.

Setup

What Puppet-Fstab affects

  • Optionally installs nfs and cifs client software
  • Manages the mount points
  • Manages /etc/exports

Usage

Mount to an NFS share

class { 'fstab' : }

fstab::mount { '/mountPoint':
  ensure  => 'mounted',
  device  => '10.0.0.1:/nfs/mount/point',
  options => 'ro,hard,rsize=32768,wsize=32768,nfsvers=3',
  fstype  => 'nfs',
}

Mount to a CIFS share using username and password

class { 'fstab':
  manage_cifs => true, # manage the cifs packages
}

$credentials = '/home/user/mount.smb'

fstab::mount { '/mountPoint':
  ensure           => 'mounted',
  device           => '//windows-server/sharedFolder',
  credentials_file => $credentials,
  username         => 'msusername',
  password         => 'mspassword',
  options          => "credentials=${credentials},sec=ntlm,uid=owner,gid=group,iocharset=utf-8",
  fstype           => 'cifs',
}

Limitations

This module has been tested on Ubuntu 14.04 and Centos 6

Contributors