aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-12-16 23:18:17 +0100
committerEgor Tensin <egor@tensin.name>2025-12-16 23:18:17 +0100
commit400833c5d2f033ac9ea768ec7afc88ce6f9bb49b (patch)
tree8c9064f0120e076e17d0ce7f213a242b1b7f2cca
parentworkflows: upgrade actions (diff)
downloadlinux-status-400833c5d2f033ac9ea768ec7afc88ce6f9bb49b.tar.gz
linux-status-400833c5d2f033ac9ea768ec7afc88ce6f9bb49b.zip
debian: error out if required Vagrant plugins are not installed
-rw-r--r--debian/Vagrantfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/Vagrantfile b/debian/Vagrantfile
index fdc6ef6..edcd53c 100644
--- a/debian/Vagrantfile
+++ b/debian/Vagrantfile
@@ -6,6 +6,18 @@ EMAIL = 'egor@tensin.name'
GPG_KEY = '09AEA2BAD52882A1AF9D6042F218DB829A9905B5'
UID = Process.euid
+REQUIRED_PLUGINS = %w(
+ vagrant-libvirt
+ vagrant-reload
+)
+exit unless REQUIRED_PLUGINS.all? do |plugin|
+ Vagrant.has_plugin?(plugin) || (
+ puts "The #{plugin} plugin is required. Please install it with:"
+ puts " vagrant plugin install #{plugin}"
+ false
+ )
+end
+
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2004"