diff --git a/Vagrantfile b/Vagrantfile index 37f3db1f..d9b6c869 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -24,6 +24,7 @@ CONFIG = File.join(File.dirname(__FILE__), "config.rb") # Defaults for config options defined in CONFIG $num_instances = 1 +$update_channel = "alpha" $instance_name_prefix = "core" $enable_serial_logging = false $share_home = false @@ -63,12 +64,12 @@ Vagrant.configure("2") do |config| # forward ssh agent to easily ssh into the different machines config.ssh.forward_agent = true - config.vm.box = "coreos-alpha" - config.vm.box_url = "https://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant_virtualbox.json" + config.vm.box = "coreos-#{$update_channel}" + config.vm.box_url = "https://#{$update_channel}.release.core-os.net/amd64-usr/current/coreos_production_vagrant_virtualbox.json" ["vmware_fusion", "vmware_workstation"].each do |vmware| config.vm.provider vmware do |v, override| - override.vm.box_url = "https://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant_vmware_fusion.json" + override.vm.box_url = "https://#{$update_channel}.release.core-os.net/amd64-usr/current/coreos_production_vagrant_vmware_fusion.json" end end diff --git a/config.rb.sample b/config.rb.sample index c99ffcd0..8b332c8d 100644 --- a/config.rb.sample +++ b/config.rb.sample @@ -1,6 +1,9 @@ # Size of the CoreOS cluster created by Vagrant $num_instances=1 +# Official CoreOS channel from which updates should be downloaded +$update_channel='alpha' + # Used to fetch a new discovery token for a cluster of size $num_instances $new_discovery_url="https://discovery.etcd.io/new?size=#{$num_instances}"