From 25042a3e9e5352fc232f9b22a7561068b007822c Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 2 Sep 2025 16:56:48 +0100 Subject: [PATCH] systemd: add Fixed Random Delay support to timer --- cookbooks/systemd/resources/timer.rb | 1 + cookbooks/systemd/templates/default/timer.erb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cookbooks/systemd/resources/timer.rb b/cookbooks/systemd/resources/timer.rb index f3f324ea0..2b21ba289 100644 --- a/cookbooks/systemd/resources/timer.rb +++ b/cookbooks/systemd/resources/timer.rb @@ -34,6 +34,7 @@ property :on_unit_inactive_sec, [Integer, String] property :on_calendar, String property :accuracy_sec, [Integer, String] property :randomized_delay_sec, [Integer, String] +property :fixed_random_delay, [true, false] property :unit, String property :persistent, [true, false] property :wake_system, [true, false] diff --git a/cookbooks/systemd/templates/default/timer.erb b/cookbooks/systemd/templates/default/timer.erb index 8ebdd90ac..7b43372f1 100644 --- a/cookbooks/systemd/templates/default/timer.erb +++ b/cookbooks/systemd/templates/default/timer.erb @@ -34,6 +34,9 @@ AccuracySec=<%= @accuracy_sec %> <% if @randomized_delay_sec -%> RandomizedDelaySec=<%= @randomized_delay_sec %> <% end -%> +<% if @fixed_random_delay -%> +FixedRandomDelay=<%= @fixed_random_delay %> +<% end -%> <% if @unit -%> Unit=<%= @unit %> <% end -%> -- 2.39.5