summaryrefslogtreecommitdiff
path: root/vmdb/plugins/debootstrap_plugin.py
diff options
context:
space:
mode:
authorAndy Piper <andy.piper@arcticwolf.com>2021-11-22 20:30:11 -0500
committerAndy Piper <andy.piper@arcticwolf.com>2021-11-22 20:30:11 -0500
commit788d4b1e920db40a0ad32361255e0d59cdbec829 (patch)
tree503734a7c38abfb0b144402e49f8022439b0e692 /vmdb/plugins/debootstrap_plugin.py
parent971521502bff4d1d7ab4c03077142a379ad6c726 (diff)
downloadvmdb2-788d4b1e920db40a0ad32361255e0d59cdbec829.tar.gz
debootstrap_plugin: don't always run apt-get update
The apt_plugin always runs `apt-get update` before installing packages, so the `apt-get update` in deboostrap_plugin is redundant. It also blocks provisioning the TLS certs required to validate connections to package repos that use https instead of http connections.
Diffstat (limited to 'vmdb/plugins/debootstrap_plugin.py')
-rw-r--r--vmdb/plugins/debootstrap_plugin.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/vmdb/plugins/debootstrap_plugin.py b/vmdb/plugins/debootstrap_plugin.py
index 4922690..92d23d4 100644
--- a/vmdb/plugins/debootstrap_plugin.py
+++ b/vmdb/plugins/debootstrap_plugin.py
@@ -85,7 +85,3 @@ class DebootstrapStepRunner(vmdb.StepRunnerInterface):
]
)
- def run_even_if_skipped(self, values, settings, state):
- tag = values["target"]
- target = state.tags.get_builder_mount_point(tag)
- vmdb.runcmd_chroot(target, ["apt-get", "update"])