mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Introduce a timeout for package installation
Sometimes package installations can get into weird state and stuck for a very long time. Timeout the tasks to fail early, with a customizable timeout duration.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
# number of times package install task should be retried
|
# number of times package install task should be retried
|
||||||
pkg_install_retries: 4
|
pkg_install_retries: 4
|
||||||
|
pkg_install_timeout: "{{ 5 * 60 }}"
|
||||||
yum_repo_dir: /etc/yum.repos.d
|
yum_repo_dir: /etc/yum.repos.d
|
||||||
|
|||||||
@@ -63,3 +63,4 @@
|
|||||||
label: "{{ item.action_label }}"
|
label: "{{ item.action_label }}"
|
||||||
tags:
|
tags:
|
||||||
- bootstrap_os
|
- bootstrap_os
|
||||||
|
timeout: "{{ pkg_install_timeout }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user