1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
# @api private
#
# This class manages and configures journald.
#
# https://www.freedesktop.org/software/systemd/man/journald.conf.html
class systemd::journald {
assert_private()
service { 'systemd-journald':
ensure => running,
}
$systemd::journald_settings.each |$option, $value| {
ini_setting {
$option:
path => '/etc/systemd/journald.conf',
section => 'Journal',
setting => $option,
notify => Service['systemd-journald'],
}
if $value =~ Hash {
Ini_setting[$option] {
* => $value,
}
} else {
Ini_setting[$option] {
value => $value,
}
}
}
}
|