Fix for broken vagrant installs when using Vagrant 1.8.5. 69/2169/3
authorThomas F Herbert <thomasfherbert@gmail.com>
Mon, 1 Aug 2016 22:33:48 +0000 (18:33 -0400)
committerKeith Burns <alagalah@gmail.com>
Tue, 2 Aug 2016 14:20:21 +0000 (14:20 +0000)
I upgraded Fedora23 which installed kernel 4.6.4 which in turn required
VirtualBox 5.1.2 which in turn required Vagrant 1.8.5.

Workaround for a change in Vagrant 1.8.5 that breaks Centos. The
newer version of Vagrant doesn't chmod the ssh directory before trying to copy
new public key during installs. This will be fixed upstream in Vagrant 1.8.6.
Bug doesn't affect Ubuntu because it uses a different umask whereas Centos uses
0002.

Change-Id: I8108d4cc208fc47fa69f8a5cf27b2bba7e34293e
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
build-root/vagrant/Vagrantfile

index 5b374f2..641397e 100644 (file)
@@ -7,6 +7,7 @@ Vagrant.configure(2) do |config|
   distro = ( ENV['VPP_VAGRANT_DISTRO'] || "ubuntu1404")
   if distro == 'centos7'
     config.vm.box = "puppetlabs/centos-7.2-64-nocm"
+    config.ssh.insert_key = false
   else
     config.vm.box = "puppetlabs/ubuntu-14.04-64-nocm"
   end