Puppet Class: systemd::coredump

Defined in:
manifests/coredump.pp

Summary

This class manages the systemd-coredump configuration.

Overview



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/coredump.pp', line 4

class systemd::coredump {
  assert_private()

  $systemd::coredump_settings.each |$option, $value| {
    ini_setting {
      "coredump_${option}":
        path    => '/etc/systemd/coredump.conf',
        section => 'Coredump',
        setting => $option,
        value   => $value,
    }
  }

  systemd::dropin_file { 'coredump_backtrace.conf':
    ensure  => bool2str($systemd::coredump_backtrace, 'file', 'absent'),
    unit    => 'systemd-coredump@.service',
    content => "# Puppet\n[Service]\nExecStart=\nExecStart=-/usr/lib/systemd/systemd-coredump --backtrace\n",
  }
}