Puppet Class: haveged

Defined in:
modules/haveged/manifests/init.pp

Overview

Parameters:

  • buffer_size (Integer) (defaults to: 128)

    Buffer size [KW]

  • data_cache (Integer) (defaults to: 16)

    Data cache size [KB]

  • instruction_cache (Integer) (defaults to: 16)

    Instruction cache size [KB]

  • write_wakeup_threshold (Integer) (defaults to: 1024)

    The write_wakeup_threshold



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'modules/haveged/manifests/init.pp', line 6

class haveged (
    Integer $buffer_size = 128,
    Integer $data_cache = 16,
    Integer $instruction_cache = 16,
    Integer $write_wakeup_threshold = 1024
) {
    ensure_packages(['haveged'])
    $default_haveged = @("CONF")
    # Managed by Puppet!
    DAEMON_ARGS="-b ${buffer_size} \
        -d ${data_cache} \
        -i ${instruction_cache} \
        -w ${write_wakeup_threshold}"
    | CONF
    file {'/etc/default/haveged':
        ensure  => file,
        owner   => 'root',
        group   => 'root',
        mode    => '0644',
        content => $default_haveged,
        notify  => Service['haveged'],
    }
    service{ 'haveged':
        ensure => running,
        enable => true,
    }
}