Forge Home

mounts

Manage mounts and fstab.

6,383 downloads

6,383 latest version

3.9 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

  • 0.1.0 (latest)
released Dec 4th 2016

Start using this module

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

Add this module to your Puppetfile:

mod 'ntnn-mounts', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ntnn-mounts
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ntnn-mounts --version 0.1.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
Tags: mount, fstab, mounts

Documentation

ntnn/mounts — version 0.1.0 Dec 4th 2016

mounts

Table of Contents

  1. Description
  2. Setup
    1. Requirements
  3. Usage
  4. Reference

Description

Manage mounts via fstab and mounts -a.

Setup

Pull in this module set mounts via hiera.

Requirements

  • Puppet Version >= 4
  • puppetlabs/stdlib >= 4.12.0

Usage

Example:

In manifest:

include mounts

I set os specific settings in 79_%{os} and general in 99_default:

79_Gentoo.yaml:

mounts:
  /var/tmp/paludis:
    fs: tmpfs
    opts:
      - uid=paludisbuild
      - gid=paludisbuild
      - mode=755
      - noatime
  /var/tmp/portage:
    fs: tmpfs
    opts:
      - uid=portage
      - gid=portage
      - mode=755
      - noatime

99_default.yaml:

mounts:
  /tmp:
    fs: tmpfs
    opts:
      - defaults
      - nosuid

Reference

Classes

mounts

fstab

Path to fstab, defaults to /etc/fstab

mode

Mode for fstab, defaults to 0644

realize_tag

Tag of Mounts::Mount to realize, defaults to mounts.

mount_cmd

Command to use to update mounts, defaults to /bin/mount --all.

Defines

mounts::mount

fs

Filesystem to mount, required.

mountpoint

Namevar, path of mount.

type

Type of filesystem to mount. Defaults to tmpfs for fs=tmpfs, ext4 otherwise.

opts

Options to set, defaults to ['defaults'].

dump

If the filesystem should be dumped, defaults to 0.

pass

If and when the filesystem should be checked at boot time. Defaults to 0 for tmpfs and 2 otherwise.

order

Order to pass to concat::fragment, used to order the filesystem within the target fstab.