From 722b200e16d172200e79962f9e10c07b0e10032f Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 7 Apr 2022 08:58:07 -0400 Subject: [PATCH] add retry to apt_update incase running in background --- salt/repo/client/ubuntu.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/repo/client/ubuntu.sls b/salt/repo/client/ubuntu.sls index 9f8a3e4ec..1d61a1007 100644 --- a/salt/repo/client/ubuntu.sls +++ b/salt/repo/client/ubuntu.sls @@ -9,3 +9,7 @@ apt_update: - name: apt-get update - onchanges: - file: saltstack.list + - timeout: 30 + - retry: + attempts: 5 + interval: 30