Puppet Class: profile::toolforge::grid::node::all

Defined in:
modules/profile/manifests/toolforge/grid/node/all.pp

Overview

Parameters:

  • swap_partition (Any) (defaults to: hiera('swap_partition', true))
  • tmp_partition (Any) (defaults to: hiera('tmp_partition', true))


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

class profile::toolforge::grid::node::all(
    $swap_partition = hiera('swap_partition', true),
    $tmp_partition = hiera('tmp_partition', true),
) {
    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'),
        }
    }
}