From e2d8fe708376913e54867c111c45182126c7e9d8 Mon Sep 17 00:00:00 2001 From: Tim Visher Date: Fri, 4 Jun 2021 11:57:11 -0400 Subject: [PATCH] Provide vagrant 2.2.15 This is provided because 2.2.16 has a bug where it cannot be used with RSA SHA1 ssh keys which makes it impossible to use with vagrant-aws as well as any other platform that only supports RSA SHA1 keys. There's been no activity from the vagrant maintainers to fix this so until something's done about it it should be easy to install 2.2.15. I believe this qualifies as a 'clear demonstrable need'. https://github.com/hashicorp/vagrant/issues/12344 --- Casks/vagrant2-2-15.rb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Casks/vagrant2-2-15.rb diff --git a/Casks/vagrant2-2-15.rb b/Casks/vagrant2-2-15.rb new file mode 100644 index 00000000000000..455721e34dca8e --- /dev/null +++ b/Casks/vagrant2-2-15.rb @@ -0,0 +1,33 @@ +# This is provided because 2.2.16 has a bug where it cannot be used with +# RSA SHA1 ssh keys which makes it impossible to use with vagrant-aws as +# well as any other platform that only supports RSA SHA1 keys. There's +# been no activity from the vagrant maintainers to fix this so until +# something's done about it it should be easy to install 2.2.15. +# +# https://github.com/hashicorp/vagrant/issues/12344 +cask "vagrant2-2-15" do + version "2.2.15" + sha256 "5c2b290c4fa2371e255c56b1e96ded3d0c838d54cb7f0e8e6cf154e9f206a20e" + + url "https://releases.hashicorp.com/vagrant/#{version}/vagrant_#{version}_x86_64.dmg", + verified: "hashicorp.com/vagrant/" + name "Vagrant" + desc "Development environment" + homepage "https://www.vagrantup.com/" + + livecheck do + url "https://github.com/hashicorp/vagrant" + strategy :git + end + + pkg "vagrant.pkg" + + uninstall script: { + executable: "uninstall.tool", + input: ["Yes"], + sudo: true, + }, + pkgutil: "com.vagrant.vagrant" + + zap trash: "~/.vagrant.d" +end