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

add support for $update_channel to match coreos.com documentation #316

Merged
merged 1 commit into from
Jul 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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