race condition in download role under vagrant

using a shared folder can cause race conditions for the download
role as it tries to download files on all the nodes to the same
shared path.  This adds a flag to run the tasks in the download
role on just one node.
This commit is contained in:
Paul Czarkowski
2016-05-17 23:30:01 -05:00
parent 5240465f39
commit ba615ff94e
4 changed files with 14 additions and 54 deletions

4
Vagrantfile vendored
View File

@@ -79,7 +79,8 @@ Vagrant.configure("2") do |config|
"access_ip" => ip,
"flannel_interface" => ip,
"flannel_backend_type" => "host-gw",
"local_release_dir" => "/vagrant/temp"
"local_release_dir" => "/vagrant/temp",
"download_run_once" => "True"
}
config.vm.network :private_network, ip: ip
@@ -96,6 +97,7 @@ Vagrant.configure("2") do |config|
ansible.host_key_checking = false
ansible.raw_arguments = ["--forks=#{$num_instances}"]
ansible.host_vars = host_vars
#ansible.tags = ['download']
ansible.groups = {
# The first three nodes should be etcd servers
"etcd" => ["k8s-0[1:3]"],