Skip to content

Commit b5d0455

Browse files
committed
update dokumentation and service settings
1 parent f7a6215 commit b5d0455

File tree

5 files changed

+30
-10
lines changed

5 files changed

+30
-10
lines changed

REFERENCE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
* [`Systemd::Capabilities`](#Systemd--Capabilities): Defines allowed capabilities
6363
* [`Systemd::CoredumpSettings`](#Systemd--CoredumpSettings): Configurations for coredump.conf
6464
* [`Systemd::Dropin`](#Systemd--Dropin): custom datatype that validates filenames/paths for valid systemd dropin files
65-
* [`Systemd::JournalRemoteSettings`](#Systemd--JournalRemoteSettings): Matches Systemd journal remote config Struct
66-
* [`Systemd::JournalUploadSettings`](#Systemd--JournalUploadSettings): Matches Systemd journal upload config Struct
65+
* [`Systemd::JournalRemoteSettings`](#Systemd--JournalRemoteSettings): matches Systemd journal remote config Struct
66+
* [`Systemd::JournalUploadSettings`](#Systemd--JournalUploadSettings): matches Systemd journal upload config Struct
6767
* [`Systemd::JournaldSettings`](#Systemd--JournaldSettings): Matches Systemd journald config Struct
6868
* [`Systemd::JournaldSettings::Ensure`](#Systemd--JournaldSettings--Ensure): defines allowed ensure states for systemd-journald settings
6969
* [`Systemd::LogLevel`](#Systemd--LogLevel): Defines allowed log levels
@@ -2732,7 +2732,7 @@ Alias of `Pattern['^[^/]+\.conf$']`
27322732

27332733
### <a name="Systemd--JournalRemoteSettings"></a>`Systemd::JournalRemoteSettings`
27342734

2735-
Matches Systemd journal remote config Struct
2735+
matches Systemd journal remote config Struct
27362736

27372737
Alias of
27382738

@@ -2752,7 +2752,7 @@ Struct[{
27522752

27532753
### <a name="Systemd--JournalUploadSettings"></a>`Systemd::JournalUploadSettings`
27542754

2755-
Matches Systemd journal upload config Struct
2755+
matches Systemd journal upload config Struct
27562756

27572757
Alias of
27582758

manifests/journal_upload.pp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@
55
# @param package_name
66
# name of the package to install for the functionality
77
#
8+
# @param service_ensure
9+
# what we ensure for the service
10+
#
11+
# @param service_enable
12+
# to enable the service
13+
#
814
class systemd::journal_upload (
9-
Optional[String[1]] $package_name = undef,
15+
Optional[String[1]] $package_name = undef,
16+
Enum['running','stopped'] $service_ensure = 'running',
17+
Boolean $service_enable = true,
1018
) {
1119
assert_private()
1220

@@ -15,7 +23,8 @@
1523
}
1624

1725
service { 'systemd-journal-upload':
18-
ensure => running,
26+
ensure => $service_ensure,
27+
enable => $service_enable,
1928
}
2029
$systemd::journal_upload_settings.each |$option, $value| {
2130
ini_setting { "journal-upload_${option}":

spec/classes/init_spec.rb

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,8 +700,19 @@
700700
end
701701

702702
it { is_expected.to compile.with_all_deps }
703-
it { is_expected.to contain_service('systemd-journal-upload') }
704-
it { is_expected.to contain_service('systemd-journal-remote') }
703+
704+
it {
705+
is_expected.to contain_service('systemd-journal-upload').with(
706+
ensure: 'running',
707+
enable: true
708+
)
709+
}
710+
711+
it {
712+
is_expected.to contain_service('systemd-journal-remote').with(
713+
ensure: 'running'
714+
)
715+
}
705716

706717
it { is_expected.to have_ini_setting_resource_count(8) }
707718

types/journalremotesettings.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Matches Systemd journal remote config Struct
1+
# @summary matches Systemd journal remote config Struct
22
type Systemd::JournalRemoteSettings = Struct[
33
# lint:ignore:140chars
44
{

types/journaluploadsettings.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Matches Systemd journal upload config Struct
1+
# @summary matches Systemd journal upload config Struct
22
type Systemd::JournalUploadSettings = Struct[
33
# lint:ignore:140chars
44
{

0 commit comments

Comments
 (0)