]> git.openstreetmap.org Git - chef.git/commitdiff
podman: increase startup timeout to not fail on slow container pulls
authorGrant Slater <github@firefishy.com>
Sun, 25 Jun 2023 11:08:23 +0000 (12:08 +0100)
committerGrant Slater <github@firefishy.com>
Sun, 25 Jun 2023 11:08:44 +0000 (12:08 +0100)
cookbooks/podman/resources/service.rb

index a6013e3855e843cfc7a36b1ad51eba67c8ef5824..6ce5da35ee1a2601251cb30cd99770aeda76f5e9 100644 (file)
@@ -36,6 +36,7 @@ action :create do
     exec_start "/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --userns=auto --label=io.containers.autoupdate=registry --network=slirp4netns:mtu=1500 #{publish_options} --rm --sdnotify=conmon --detach --replace --name=%N #{new_resource.image}"
     exec_stop "/usr/bin/podman stop --ignore --time=10 --cidfile=%t/%n.ctr-id"
     exec_stop_post "/usr/bin/podman rm --force --ignore --cidfile=%t/%n.ctr-id"
+    timeout_start_sec 180
     timeout_stop_sec 70
     restart "on-failure"
   end