From 5e896090165a231719b856cc37ccd7d475299a89 Mon Sep 17 00:00:00 2001 From: fox Date: Sun, 18 Dec 2022 17:37:01 -0600 Subject: [PATCH] treehouse Vagrantfile init --- Vagrantfile | 179 +++++++++++++++++++++------------------------------- 1 file changed, 71 insertions(+), 108 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 0d44b4d2304..1ec6f258616 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,137 +1,100 @@ # -*- mode: ruby -*- # vi: set ft=ruby : -ENV["PORT"] ||= "3000" +REQUIRED_PLUGINS = %w(vagrant-libvirt) +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 $provision = <