1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Update the configuration for Vagrant 1.7+

Vagrant 1.7+ defaults to removing the insecure SSH key which causes
the cap tasks to fail. Add configuration to use old method

Requires that the Vagrant configuration syntax is updated, so also
update the box/url and network definitions

This means the latest version of Vagrant will be needed to run the
test features.
This commit is contained in:
Nick Townsend 2015-02-03 11:15:56 -08:00
parent 394bd3a680
commit 8a05c9cef7

View file

@ -1,13 +1,13 @@
Vagrant::Config.run do |config|
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
[:app].each_with_index do |role, i|
config.vm.define(role, primary: true) do |config|
config.vm.box = role
config.vm.box = 'precise64'
config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
config.vm.forward_port 22, "222#{i}".to_i
config.vm.define role
config.vm.box = 'hashicorp/precise64'
config.vm.network "forwarded_port", guest: 22, host: "222#{i}".to_i
config.vm.provision :shell, inline: 'sudo apt-get -y install git-core'
end
end
end