mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 19:51:15 -03:30
set vm box to be hashicorp hosted trusty
I accidently left in the old download URL for coreos even after I switched the box name to be ubuntu, it worked fine for me because I already had that box locally so it didn't try to download. This should resolve this by using the official bento/ubuntu-14.04 box which is a nice minimal image. We also allow the 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. Finally will create more verbose documentation.
This commit is contained in:
23
Vagrantfile
vendored
23
Vagrantfile
vendored
@@ -11,11 +11,12 @@ CONFIG = File.join(File.dirname(__FILE__), "vagrant/config.rb")
|
||||
$num_instances = 3
|
||||
$instance_name_prefix = "k8s"
|
||||
$vm_gui = false
|
||||
$vm_memory = 1024
|
||||
$vm_memory = 1536
|
||||
$vm_cpus = 1
|
||||
$shared_folders = {}
|
||||
$forwarded_ports = {}
|
||||
$subnet = "172.17.8"
|
||||
$box = "bento/ubuntu-14.04"
|
||||
|
||||
host_vars = {}
|
||||
|
||||
@@ -40,22 +41,7 @@ end
|
||||
Vagrant.configure("2") do |config|
|
||||
# always use Vagrants insecure key
|
||||
config.ssh.insert_key = false
|
||||
|
||||
config.vm.box = "ubuntu-14.04"
|
||||
config.vm.box_url = "https://storage.googleapis.com/%s.release.core-os.net/amd64-usr/%s/coreos_production_vagrant.json" % [$update_channel, $image_version]
|
||||
|
||||
["vmware_fusion", "vmware_workstation"].each do |vmware|
|
||||
config.vm.provider vmware do |v, override|
|
||||
override.vm.box_url = "https://storage.googleapis.com/%s.release.core-os.net/amd64-usr/%s/coreos_production_vagrant_vmware_fusion.json" % [$update_channel, $image_version]
|
||||
end
|
||||
end
|
||||
|
||||
config.vm.provider :virtualbox do |v|
|
||||
# On VirtualBox, we don't have guest additions or a functional vboxsf
|
||||
# in CoreOS, so tell Vagrant that so it can be smarter.
|
||||
v.check_guest_additions = false
|
||||
v.functional_vboxsf = false
|
||||
end
|
||||
config.vm.box = $box
|
||||
|
||||
# plugin conflict
|
||||
if Vagrant.has_plugin?("vagrant-vbguest") then
|
||||
@@ -92,7 +78,8 @@ Vagrant.configure("2") do |config|
|
||||
"ip" => ip,
|
||||
"access_ip" => 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user