aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2021-11-28 17:58:19 +0100
committerDimitri Staessens <dimitri@ouroboros.rocks>2021-11-28 17:58:19 +0100
commitc661ea043a17c7af70c64f46f4e64a6013a0c1aa (patch)
treeca8b566f79246df2a5f225a0445d8c28ea642bea
parent9d07466cd0388ddece61d15f0abff5b89add5929 (diff)
downloadrumba-c661ea043a17c7af70c64f46f4e64a6013a0c1aa.tar.gz
rumba-c661ea043a17c7af70c64f46f4e64a6013a0c1aa.zip
ssh_support: Update certificates
This will update certificates on the ubuntu hosts.
-rw-r--r--rumba/ssh_support.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rumba/ssh_support.py b/rumba/ssh_support.py
index 77c4fb6..d77b59f 100644
--- a/rumba/ssh_support.py
+++ b/rumba/ssh_support.py
@@ -416,6 +416,8 @@ def aptitude_install(testbed, node, packages):
cmds = [sudo("sh -c 'while fuser /var/lib/dpkg/lock > /dev/null 2>&1; " +
"do sleep 1; echo \"Waiting for dpkg...\"; done'"),
"while ! " + sudo("apt-get update") + "; do sleep 1; done",
+ "while ! " + sudo("DEBIAN_FRONTEND=noninteractive apt-get install --reinstall ca-certificates") + "; do sleep 1; done",
+ "while ! " + sudo("DEBIAN_FRONTEND=noninteractive update-ca-certificates") + "; do sleep 1; done",
"while ! " + sudo(package_install) + "; do sleep 1; done"]
execute_commands(testbed, node.ssh_config, cmds, time_out=None)