Puppet Class: systemd::journald
- Defined in:
- manifests/journald.pp
Overview
This class manages and configures journald.
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 |
# File 'manifests/journald.pp', line 6
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,
}
}
}
}
|