Add config for systemd coredump

This commit is contained in:
Monocots 2022-11-18 21:18:30 +00:00
parent dc9d99bf4e
commit 925383d3e6
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,21 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See coredump.conf(5) for details.
[Coredump]
#Storage=external
Compress=no
#ProcessSizeMax=2G
#ExternalSizeMax=2G
#JournalSizeMax=767M
#MaxUse=
#KeepFree=

View file

@ -65,4 +65,15 @@ class rhizo_base::fixes::debian {
enable => true,
require => File['/etc/systemd/system/tmp.mount']
}
file { '/etc/systemd/coredump.conf':
ensure => present,
source => 'puppet:///modules/rhizo_base/systemd/coredump.conf'
}
file { '/var/log/journal':
ensure => directory,
owner => 'root',
}
}