From ba0fa3f318e5650a0ecc7bb3e6b224ec7eff3642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Klein?= Date: Wed, 22 Feb 2017 19:59:34 +0100 Subject: [PATCH] Fix issue #1573 with vagrant shell provisionning --- ansible/vagrant/Vagrantfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ansible/vagrant/Vagrantfile b/ansible/vagrant/Vagrantfile index f6ab342493..1df4d63739 100644 --- a/ansible/vagrant/Vagrantfile +++ b/ansible/vagrant/Vagrantfile @@ -288,6 +288,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| masters.push(name) config.vm.define "#{name}" do |n| n.vm.hostname = name + if $os_image == :centos7 + # Fix bug https://github.com/kubernetes/contrib/issues/1573 + n.vm.provision "shell", inline: "/sbin/ifup eth1" + end set_provider(n, i ) end end @@ -299,6 +303,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| nodes.push(name) config.vm.define "#{name}" do |n| n.vm.hostname = name + if $os_image == :centos7 + # Fix bug https://github.com/kubernetes/contrib/issues/1573 + n.vm.provision "shell", inline: "/sbin/ifup eth1" + end set_provider(n, i + $num_masters) if i == $num_nodes-1 # GROUP CONFIGURATION