Resource Type: swap_file

Defined in:
lib/puppet/type/swap_file.rb
Providers:
linux

Overview

Used to configure swap files

Examples

swap_file { ‘/mnt/swap.1’:

ensure   => 'present',
size     => '1068028',

}

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • priority

    The priority of the swapfile

  • size

    The size of the swapfile in bytes

  • type

    The type of the swapfile

  • used

    The amount of space used

Parameters

  • file

    The file path of the swapfile.

  • provider

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