From 30accc826370e9863d043717f80b61267912b28e Mon Sep 17 00:00:00 2001 From: Oleg Guba Date: Fri, 22 Nov 2024 14:28:03 -0800 Subject: [PATCH] [Systemd::Unit::Service] add support for LogRateLimit* options (#500) * [Systemd::Unit::Service] add support for LogRateLimit* options * fix order --- REFERENCE.md | 2 ++ types/unit/service.pp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/REFERENCE.md b/REFERENCE.md index 42295a2e..43cf9f0f 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -3280,6 +3280,8 @@ Struct[{ Optional['StateDirectory'] => String, Optional['LogsDirectory'] => String, Optional['LogsDirectoryMode'] => Stdlib::Filemode, + Optional['LogRateLimitIntervalSec'] => Variant[Pattern[/^[0-9]+(s|min|h|ms|us)?$/]], + Optional['LogRateLimitBurst'] => Variant[Integer[0], Pattern[/^[0-9]+$/]], Optional['ProtectSystem'] => Variant[Boolean, Enum['full', 'strict']], Optional['ProtectHome'] => Variant[Boolean, Enum['read-only', 'tmpfs']], Optional['BindPaths'] => Variant[Stdlib::Unixpath,Pattern[/-\/.+/], Array[Variant[Stdlib::Unixpath,Pattern[/-\/.+/]],1]], diff --git a/types/unit/service.pp b/types/unit/service.pp index 554283b8..f21b1507 100644 --- a/types/unit/service.pp +++ b/types/unit/service.pp @@ -105,6 +105,8 @@ Optional['StateDirectory'] => String, Optional['LogsDirectory'] => String, Optional['LogsDirectoryMode'] => Stdlib::Filemode, + Optional['LogRateLimitIntervalSec'] => Variant[Pattern[/^[0-9]+(s|min|h|ms|us)?$/]], + Optional['LogRateLimitBurst'] => Variant[Integer[0], Pattern[/^[0-9]+$/]], Optional['ProtectSystem'] => Variant[Boolean, Enum['full', 'strict']], Optional['ProtectHome'] => Variant[Boolean, Enum['read-only', 'tmpfs']], Optional['BindPaths'] => Variant[Stdlib::Unixpath,Pattern[/-\/.+/], Array[Variant[Stdlib::Unixpath,Pattern[/-\/.+/]],1]],