Resource Type: mounttab

Defined in:
lib/puppet/type/mounttab.rb
Providers:
parsed

Overview

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.

Properties

  • atboot

    Whether to mount the mount at boot. Not all platforms support this.

    Supported values:
    • yes
    • no
    • true (alias for: yes)
    • false (alias for: no)
  • blockdevice

    The device to fsck. This is property is only valid on Solaris, and in most cases will default to the correct value.

  • 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.

  • dump

    Whether to dump the mount. Not all platform support this. Valid values are ‘1` or `0`. or `2` on FreeBSD, Default is `0`.

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • 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.

  • target

    The file in which to store the mount table. Only used by those providers that write to disk.

Parameters

  • name (namevar)

    The mount path for the mount.

  • provider

    The specific backend to use for this ‘mounttab` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.