]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/podman/recipes/default.rb
podman: Increase podman-auto-update.service frequency
[chef.git] / cookbooks / podman / recipes / default.rb
index dc7b495e13a9b0daa34a9050dc36a3caca93a163..84137a7a9960d44e2f6841fb1542b81f84ad8bd3 100644 (file)
@@ -44,3 +44,16 @@ 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"
+  on_boot_sec "5m"
+  on_unit_inactive_sec "20m"
+  randomized_delay_sec "5m"
+end
+
+service "podman-auto-update-frequency.timer" do
+  action [:enable, :start]
+end