puppetlabs/mount_providers |
|
|
Author: Puppet Labs
Tags:
|
|
How to Install
Mount Providers
This module is designed to provide additional functionality and support the native mount type inside of Puppet. The module provides two additional resource types not provided by Puppet core:
- mountpoint
- mounttab
Please see the output of puppet describe mountpoint and puppet describe
mounttab for more information about the types and providers supplied by this
module.
Installation
This module is installable from the Puppet Forge using the puppet module command.
$ puppet module install puppetlabs-mount_providers
Source
Known Issues
This module will cause puppet describe to throw an error on Puppet versions
between 2.6.8 and 2.6.14. The error is:
root@ubuntu-10:/etc/puppetlabs/puppet/modules# puppet describe mounttab
Could not run: Could not autoload /etc/puppetlabs/puppet/modules/puppetlabs-mount-providers/lib/puppet/type/mountpoint.rb:undefined method 'downcase' for nil:NilClass
Puppet has been patched to fix this bug. Please see Issue 13070 for details about when this fix has been released.
0.0.2 2012-10-10 - Jeff McCune
* (#3530) Fix mountpoint; make it refreshable
0.0.1 2012-04-18 - Jeff McCune
* Initial Release
-
mountpoint
-
Description
Manages currently mounted volumes, i.e. the live state of the filesystem. See the discussion under the mounttab type for usage.
-
Parameters
- name
The path to the mount point.
- options
Mount options for the mounts, as they would appear in the fstab.
- remounts
Whether the mount can be remounted
mount -o remount. If this is false, then the filesystem will be unmounted and remounted manually, which is prone to failure. Valid values aretrue,false.
-
Properties
- ensure
The basic property that the resource should be in. Valid values are
present,absent.- device
The device providing the mount. This can be whatever device is supporting by the mount, including network devices or devices specified by UUID rather than device path, depending on the operating system. If you already have an entry in your fstab (or you use the mounttab type to create such an entry), it is generally not necessary to specify the fstype explicitly
- fstype
The mount type. Valid values depend on the operating system. If you already have an entry in your fstab (or you use the mounttab type to create such an entry), it is generally not necessary to specify the fstype explicitly
-
Providers
- linux
Required binaries:
mount,umount. Default forkernel==linux.- solaris
Required binaries:
mount,umount. Default foroperatingsystem==solaris.
-
-
mounttab
-
Description
Manages entries in the filesystem table. This is usually, but not necessarily, used in conjunction with the mountpoint type to manage both the current-running state of mounts (mountpoint) with the fstab entries which load them at boot time (mounttab). An easy way to manage both at the same time is with a defined type that wraps both resources in one call, since the three most important options (the device name, the mountpoint, and any mount options) are shared between the two types.
-
Parameters
- name
The mount path for the mount.
-
Properties
- ensure
The basic property that the resource should be in. Valid values are
present,absent.- device
The device providing the mount. This can be whatever device is supporting by the mount, including network devices or devices specified by UUID rather than device path, depending on the operating system.
- blockdevice
The device to fsck. This is property is only valid on Solaris, and in most cases will default to the correct value.
- fstype
The mount type. Valid values depend on the operating system. This is a required option.
- options
Mount options for the mount. More than one option should be specified as an array
- pass
The pass in which the mount is checked.
- atboot
Whether to mount the mount at boot. Not all platforms support this. Valid values are
yes(also calledtrue),no(also calledfalse).- dump
Whether to dump the mount. Not all platform support this. Valid values are
1or0. or2on FreeBSD, Default is0. Values can match/(0|1)/.- target
The file in which to store the mount table. Only used by those providers that write to disk.
-
Providers
- parsed
-
Find Modules
All modulesPopular Tags
