Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Fix issue #1573 with vagrant shell provisioning #2405

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ansible/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down