Puppet Class: toollabs::node::all

Defined in:
modules/toollabs/manifests/node/all.pp

Overview

Parameters:

  • swap_partition (Any) (defaults to: true)
  • tmp_partition (Any) (defaults to: true)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/toollabs/manifests/node/all.pp', line 3

class toollabs::node::all(
    $swap_partition = true,
    $tmp_partition = true,
) {

    include ::toollabs

    if $tmp_partition {
        labs_lvm::volume { 'separate-tmp':
            size      => '16GB',
            mountat   => '/tmp',
            mountmode => '1777',
            options   => 'nosuid,noexec,nodev,rw',
        }
    }

    if $swap_partition {
        labs_lvm::swap { 'big':
            size => inline_template('<%= @memorysize_mb.to_i * 3 %>MB'),
        }
    }
}