File tree Expand file tree Collapse file tree 5 files changed +30
-10
lines changed Expand file tree Collapse file tree 5 files changed +30
-10
lines changed Original file line number Diff line number Diff line change 62
62
* [ ` Systemd::Capabilities ` ] ( #Systemd--Capabilities ) : Defines allowed capabilities
63
63
* [ ` Systemd::CoredumpSettings ` ] ( #Systemd--CoredumpSettings ) : Configurations for coredump.conf
64
64
* [ ` 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
67
67
* [ ` Systemd::JournaldSettings ` ] ( #Systemd--JournaldSettings ) : Matches Systemd journald config Struct
68
68
* [ ` Systemd::JournaldSettings::Ensure ` ] ( #Systemd--JournaldSettings--Ensure ) : defines allowed ensure states for systemd-journald settings
69
69
* [ ` Systemd::LogLevel ` ] ( #Systemd--LogLevel ) : Defines allowed log levels
@@ -2732,7 +2732,7 @@ Alias of `Pattern['^[^/]+\.conf$']`
2732
2732
2733
2733
### <a name =" Systemd--JournalRemoteSettings " ></a >` Systemd::JournalRemoteSettings `
2734
2734
2735
- Matches Systemd journal remote config Struct
2735
+ matches Systemd journal remote config Struct
2736
2736
2737
2737
Alias of
2738
2738
@@ -2752,7 +2752,7 @@ Struct[{
2752
2752
2753
2753
### <a name =" Systemd--JournalUploadSettings " ></a >` Systemd::JournalUploadSettings `
2754
2754
2755
- Matches Systemd journal upload config Struct
2755
+ matches Systemd journal upload config Struct
2756
2756
2757
2757
Alias of
2758
2758
Original file line number Diff line number Diff line change 5
5
# @param package_name
6
6
# name of the package to install for the functionality
7
7
#
8
+ # @param service_ensure
9
+ # what we ensure for the service
10
+ #
11
+ # @param service_enable
12
+ # to enable the service
13
+ #
8
14
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 ,
10
18
) {
11
19
assert_private()
12
20
15
23
}
16
24
17
25
service { 'systemd-journal-upload' :
18
- ensure => running ,
26
+ ensure => $service_ensure ,
27
+ enable => $service_enable ,
19
28
}
20
29
$systemd::journal_upload_settings .each |$option , $value | {
21
30
ini_setting { "journal-upload_${option}" :
Original file line number Diff line number Diff line change 700
700
end
701
701
702
702
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
+ }
705
716
706
717
it { is_expected . to have_ini_setting_resource_count ( 8 ) }
707
718
Original file line number Diff line number Diff line change 1
- # Matches Systemd journal remote config Struct
1
+ # @summary matches Systemd journal remote config Struct
2
2
type Systemd::JournalRemoteSettings = Struct[
3
3
# lint:ignore:140chars
4
4
{
Original file line number Diff line number Diff line change 1
- # Matches Systemd journal upload config Struct
1
+ # @summary matches Systemd journal upload config Struct
2
2
type Systemd::JournalUploadSettings = Struct[
3
3
# lint:ignore:140chars
4
4
{
You can’t perform that action at this time.
0 commit comments