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

Commit

Permalink
Fix issue #1573 with vagrant shell provisionning
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-klein committed Feb 22, 2017
1 parent 1be8b69 commit ba0fa3f
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit ba0fa3f

Please sign in to comment.