Add config for systemd coredump
This commit is contained in:
parent
dc9d99bf4e
commit
925383d3e6
2 changed files with 32 additions and 0 deletions
21
modules/rhizo_base/files/systemd/coredump.conf
Normal file
21
modules/rhizo_base/files/systemd/coredump.conf
Normal 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=
|
|
@ -65,4 +65,15 @@ class rhizo_base::fixes::debian {
|
||||||
enable => true,
|
enable => true,
|
||||||
require => File['/etc/systemd/system/tmp.mount']
|
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',
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue