Allows default behaviour of sharing folder to VMs
By doing this we can stage our download files in a shared location and speed up subsequent runs significantly.
This commit is contained in:
parent
f576d70b3c
commit
370c7526ce
2 changed files with 6 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
.vagrant
|
.vagrant
|
||||||
*.retry
|
*.retry
|
||||||
inventory/vagrant_ansible_inventory
|
inventory/vagrant_ansible_inventory
|
||||||
|
temp
|
||||||
|
|
9
Vagrantfile
vendored
9
Vagrantfile
vendored
|
@ -11,7 +11,7 @@ CONFIG = File.join(File.dirname(__FILE__), "vagrant/config.rb")
|
||||||
$num_instances = 3
|
$num_instances = 3
|
||||||
$instance_name_prefix = "k8s"
|
$instance_name_prefix = "k8s"
|
||||||
$vm_gui = false
|
$vm_gui = false
|
||||||
$vm_memory = 1024
|
$vm_memory = 1536
|
||||||
$vm_cpus = 1
|
$vm_cpus = 1
|
||||||
$shared_folders = {}
|
$shared_folders = {}
|
||||||
$forwarded_ports = {}
|
$forwarded_ports = {}
|
||||||
|
@ -53,8 +53,8 @@ Vagrant.configure("2") do |config|
|
||||||
config.vm.provider :virtualbox do |v|
|
config.vm.provider :virtualbox do |v|
|
||||||
# On VirtualBox, we don't have guest additions or a functional vboxsf
|
# On VirtualBox, we don't have guest additions or a functional vboxsf
|
||||||
# in CoreOS, so tell Vagrant that so it can be smarter.
|
# in CoreOS, so tell Vagrant that so it can be smarter.
|
||||||
v.check_guest_additions = false
|
# v.check_guest_additions = false
|
||||||
v.functional_vboxsf = false
|
# v.functional_vboxsf = false
|
||||||
end
|
end
|
||||||
|
|
||||||
# plugin conflict
|
# plugin conflict
|
||||||
|
@ -92,7 +92,8 @@ Vagrant.configure("2") do |config|
|
||||||
"ip" => ip,
|
"ip" => ip,
|
||||||
"access_ip" => ip,
|
"access_ip" => ip,
|
||||||
"flannel_interface" => ip,
|
"flannel_interface" => ip,
|
||||||
"flannel_backend_type" => "host-gw"
|
"flannel_backend_type" => "host-gw",
|
||||||
|
"local_release_dir" => "/vagrant/temp"
|
||||||
}
|
}
|
||||||
config.vm.network :private_network, ip: ip
|
config.vm.network :private_network, ip: ip
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue