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:
parent
394bd3a680
commit
8a05c9cef7
1 changed files with 6 additions and 6 deletions
12
spec/support/Vagrantfile
vendored
12
spec/support/Vagrantfile
vendored
|
@ -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|
|
[:app].each_with_index do |role, i|
|
||||||
config.vm.define(role, primary: true) do |config|
|
config.vm.define(role, primary: true) do |config|
|
||||||
config.vm.box = role
|
config.vm.define role
|
||||||
config.vm.box = 'precise64'
|
config.vm.box = 'hashicorp/precise64'
|
||||||
config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
|
config.vm.network "forwarded_port", guest: 22, host: "222#{i}".to_i
|
||||||
config.vm.forward_port 22, "222#{i}".to_i
|
|
||||||
config.vm.provision :shell, inline: 'sudo apt-get -y install git-core'
|
config.vm.provision :shell, inline: 'sudo apt-get -y install git-core'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue