Version information
Start using this module
Add this module to your Puppetfile:
mod 'ntnn-mounts', '0.1.0'
Learn more about managing modules with a PuppetfileDocumentation
mounts
Table of Contents
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.
Dependencies
- puppetlabs-stdlib (>= 4.13.0)
The MIT License (MIT) Copyright (c) 2016 Nelo-T. wallus <nelo@wallus.de> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.