Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #316 from surgicalbanana/master
Browse files Browse the repository at this point in the history
add support for $update_channel to match coreos.com documentation
  • Loading branch information
Luca Bruno committed Jul 26, 2018
2 parents 62f3b54 + 52c577f commit 0857274
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions config.rb.sample
Original file line number Diff line number Diff line change
@@ -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}"

Expand Down

0 comments on commit 0857274

Please sign in to comment.