Skip to content

Commit

Permalink
feat(local-vagrant): re-enable the apt-update
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Walther committed Apr 29, 2017
1 parent 78ff672 commit 9650e18
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions local-vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.cpus = 2
v.name = "manager-#{mgrNumber}"
end
#node.vm.provision "shell", inline: "sudo apt-get update"
node.vm.provision "shell", inline: "sudo apt-get update"
node.vm.provision "docker"
node.vm.provision "shell", inline: @initManager, args: [ "#{NUM_OF_MANAGERS}" , "192.168.50.#{99+mgrNumber}", "#{mgrNumber}" ]
end
Expand All @@ -120,7 +120,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.cpus = 2
v.name = "worker-#{workerNumber}"
end
#node.vm.provision "shell", inline: "sudo apt-get update"
node.vm.provision "shell", inline: "sudo apt-get update"
node.vm.provision "docker"
node.vm.provision "shell", inline: @initWorker

Expand All @@ -133,8 +133,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Any hint welcome how to improve this ...
if NUM_OF_WORKERS == workerNumber
node.vm.provision :host_shell do |host_shell|
#host_shell.inline = 'vagrant ssh manager-1 -- docker stack deploy --compose-file=/vagrant/docker-stack.yml vote'
host_shell.inline = 'vagrant ssh manager-1 -- docker stack deploy --compose-file=/vagrant/docker-stack.yml vote'
host_shell.inline = 'mkdir .tmp';
host_shell.inline = 'cp ./../lib/docker-stack.yml .tmp';
host_shell.inline = 'vagrant ssh manager-1 -- docker stack deploy --compose-file=/vagrant/.tmp/docker-stack.yml vote';
host_shell.inline = 'rm -rf .tmp';
end
#node.vm.provision "shell", inline: "ssh vagrant@manager-1 docker stack deploy --compose-file /vagrant/docker-stack.yml vote"
end #end if
Expand Down

0 comments on commit 9650e18

Please sign in to comment.