Skip to content

Commit

Permalink
add auto bootstrap for node1
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverglass authored and Yongzhi Pan committed Aug 8, 2017
1 parent 3a3a9fa commit 9044db6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ Vagrant.configure(2) do |config|
node.vm.provider "virtualbox" do |v|
v.memory = i == 1 ? 1536 : 512
end

if i == 1
node.vm.provision "shell",
inline: "sudo /vagrant/bootstrap "\
"-m https://l2ohopf9.mirror.aliyuncs.com "\
"-r docker.io/laincloud --vip=192.168.77.201"
end

node.vm.network "private_network", ip: "192.168.77.2#{i}"

Expand Down

0 comments on commit 9044db6

Please sign in to comment.