From: Tom Hughes Date: Mon, 13 Feb 2023 19:01:55 +0000 (+0000) Subject: Modify existing podman update timer instead of creating a new one X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/cbc59e18aa4b517c2c1dbe7a0ce4cf3ccb6dbe12 Modify existing podman update timer instead of creating a new one --- diff --git a/cookbooks/podman/recipes/default.rb b/cookbooks/podman/recipes/default.rb index 84137a7a9..4c8257350 100644 --- a/cookbooks/podman/recipes/default.rb +++ b/cookbooks/podman/recipes/default.rb @@ -41,19 +41,14 @@ ruby_block "subgid-containers" do not_if "grep -q '^containers:' /etc/subgid" end -service "podman-auto-update.timer" do - action [:enable, :start] -end - -# Increase the frequency of podman auto updates systemd_timer "podman-auto-update-frequency" do - description "Increased podman auto update frequency" - unit "podman-auto-update.service" + timer "podman-auto-update" + dropin "frequency" on_boot_sec "5m" on_unit_inactive_sec "20m" randomized_delay_sec "5m" end -service "podman-auto-update-frequency.timer" do +service "podman-auto-update.timer" do action [:enable, :start] end