Puppet Class: profile::base::linux419

Defined in:
modules/profile/manifests/base/linux419.pp

Overview

Parameters:

  • enable (Boolean) (defaults to: lookup('profile::base::linux419::enable', { 'default_value' => false }))


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/profile/manifests/base/linux419.pp', line 7

class profile::base::linux419(
    Boolean $enable = lookup('profile::base::linux419::enable', { 'default_value' => false }),
) {
    # only for stretch
    if $enable and debian::codename::eq('stretch') {
        ensure_packages('linux-image-4.19-amd64')

        # real-hardware specific
        unless $facts['is_virtual'] {
            ensure_packages('rasdaemon')
            profile::auto_restarts::service { 'rasdaemon': }

            # Mask mcelog systemd unit if this host is *running*
            # a kernel >= 4.12.
            if versioncmp($::kernelversion, '4.12') >= 0 {
                systemd::mask { 'mcelog.service': }
            }
        }
    }
}