diff options
| author | Egor Tensin <egor@tensin.name> | 2025-12-16 17:42:48 +0100 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2025-12-16 23:05:02 +0100 |
| commit | 01c7ca2f20ebbf49a97e75c1c9b71cfbc117b24d (patch) | |
| tree | b5164a0c6e65bbef83c666bae44e9b18547812fa | |
| parent | workflows: upgrade actions (diff) | |
| download | config-links-01c7ca2f20ebbf49a97e75c1c9b71cfbc117b24d.tar.gz config-links-01c7ca2f20ebbf49a97e75c1c9b71cfbc117b24d.zip | |
debian: error out if required Vagrant plugins are not installed
| -rw-r--r-- | debian/Vagrantfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/Vagrantfile b/debian/Vagrantfile index cf6b969..9e1840f 100644 --- a/debian/Vagrantfile +++ b/debian/Vagrantfile @@ -6,6 +6,18 @@ EMAIL = 'Egor.Tensin@gmail.com' 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" |
