Skip to content

Commit

Permalink
Update VagrantFile to work with modern vagrant
Browse files Browse the repository at this point in the history
We had let this bitrot and it required using an old version of Vagrant.
Unfortunatly there is the need to put in a hack due to this issue on the
vagrant-aws provider
mitchellh/vagrant-aws#566. I suspect that this
provider is now abandoned as there is even a PR open to fix it
mitchellh/vagrant-aws#575. I propose that we
look to remove vagrant in the not too distant future.
  • Loading branch information
Lee Porte committed Feb 15, 2021
1 parent e820286 commit 3305c57
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion vagrant/Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.require_version ">= 1.8.0"
class Hash
def slice(*keep_keys)
h = {}
keep_keys.each { |key| h[key] = fetch(key) if has_key?(key) }
h
end unless Hash.method_defined?(:slice)
def except(*less_keys)
slice(*keys - less_keys)
end unless Hash.method_defined?(:except)
end


Vagrant.require_version ">= 2.2.14"

# We use bootstrap concourse SG and a subnet in default VPC in each region
AWS_ACCOUNT = ENV.fetch("AWS_ACCOUNT", "dev")
Expand Down

0 comments on commit 3305c57

Please sign in to comment.