Puppet Class: systemd::journal_remote
- Defined in:
-
manifests/journal_remote.pp
Summary
This class manages and configures journal-remote.
Overview
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'manifests/journal_remote.pp', line 8
class systemd::journal_remote (
Optional[String[1]] $package_name = undef,
) {
assert_private()
if $package_name {
stdlib::ensure_packages($package_name)
}
service { 'systemd-journal-remote':
ensure => running,
enable => true,
}
$systemd::journal_remote_settings.each |$option, $value| {
ini_setting { "journal-remote_${option}":
path => '/etc/systemd/journal-remote.conf',
section => 'Remote',
setting => $option,
notify => Service['systemd-journal-remote'],
}
if $value =~ Systemd::JournaldSettings::Ensure {
Ini_setting["journal-remote_${option}"] {
* => $value,
}
} else {
Ini_setting["journal-remote_${option}"] {
value => $value,
}
}
}
}
|