From 89dfac0fe4f1d8dda0632e5e007482dd41c918ef Mon Sep 17 00:00:00 2001 From: Evan Kaufman Date: Sat, 20 Jun 2015 23:12:18 -0500 Subject: [PATCH] Removed vagrantfile ssh customizations * Vagrant 1.7+ will replace the insecure public key during first boot with a dynamically created keypair per-vm * Agent forwarding will be turned off * Host's ssh config (in `~/.ssh`) will not be mounted --- lib/yeoman/templates/Vagrantfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/yeoman/templates/Vagrantfile b/lib/yeoman/templates/Vagrantfile index 107f0da0..ae97908f 100644 --- a/lib/yeoman/templates/Vagrantfile +++ b/lib/yeoman/templates/Vagrantfile @@ -7,7 +7,6 @@ Vagrant.configure("2") do |config| # Every Vagrant virtual environment requires a box to build off of. config.vm.box = "ubuntu/trusty64" - config.ssh.insert_key = false # Configure 1GB (1024MB) of memory config.vm.provider :virtualbox do |vb| @@ -22,14 +21,9 @@ Vagrant.configure("2") do |config| box.vm.network :private_network, ip: "<%= props.ip %>" box.vm.network :forwarded_port, guest: 22, id: 'ssh', host: <%= props.ip.split('.').join('').split('0').join('').slice(-4) %>, auto_correct: true - box.ssh.forward_agent = true - # Remount the default shared folder as NFS for caching and speed box.vm.synced_folder ".", "/vagrant", :nfs => true - # Mount local SSH keys for deployments - box.vm.synced_folder "~/.ssh", "/home/vagrant/.ssh" - # Provision local.<%= props.domain %> box.vm.provision :ansible do |ansible| ansible.playbook = "lib/ansible/provision.yml"