]> git.openstreetmap.org Git - chef.git/commitdiff
podman: Increase podman-auto-update.service frequency
authorGrant Slater <github@firefishy.com>
Mon, 13 Feb 2023 18:38:52 +0000 (18:38 +0000)
committerGrant Slater <github@firefishy.com>
Mon, 13 Feb 2023 18:38:52 +0000 (18:38 +0000)
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