Puppet Class: swap_file::swappiness

Defined in:
manifests/swappiness.pp

Overview

Allows setting the kernel swappiness setting

Examples:

Will set the sysctl setting for swappiness to 75

class { '::swap_file::swappiness':
  swappiness => 75,
}

Parameters:

  • swapiness (String)

    Swapiness level, integer from 0 - 100 inclusive

  • swappiness (Integer[0,100]) (defaults to: 60)

Author:

    • Peter Souter



12
13
14
15
16
17
18
19
# File 'manifests/swappiness.pp', line 12

class swap_file::swappiness (
  Integer[0,100] $swappiness = 60,
) {
  sysctl { 'vm.swappiness':
    ensure => 'present',
    value  => $swappiness,
  }
}