From 925383d3e6794f65865e6d3a5e6f247e089607c7 Mon Sep 17 00:00:00 2001 From: Monocots Date: Fri, 18 Nov 2022 21:18:30 +0000 Subject: [PATCH] Add config for systemd coredump --- .../rhizo_base/files/systemd/coredump.conf | 21 +++++++++++++++++++ modules/rhizo_base/manifests/fixes.pp | 11 ++++++++++ 2 files changed, 32 insertions(+) create mode 100644 modules/rhizo_base/files/systemd/coredump.conf diff --git a/modules/rhizo_base/files/systemd/coredump.conf b/modules/rhizo_base/files/systemd/coredump.conf new file mode 100644 index 0000000..1fbc6c4 --- /dev/null +++ b/modules/rhizo_base/files/systemd/coredump.conf @@ -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= diff --git a/modules/rhizo_base/manifests/fixes.pp b/modules/rhizo_base/manifests/fixes.pp index 07a6c68..e55a685 100644 --- a/modules/rhizo_base/manifests/fixes.pp +++ b/modules/rhizo_base/manifests/fixes.pp @@ -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', + } + }