Created
August 12, 2013 07:34
-
-
Save rhelmer/6208842 to your computer and use it in GitHub Desktop.
Vagrantfile for auto-configured etcd in multi-machine mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# The number of CoreOS VMs to launch. etcd will be clustered automatically. | |
COREOS_VMS = 1 | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
require "vagrant" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
(1..COREOS_VMS).each do |i| | |
config.vm.define vm_name = "core-%02d" % i do |config| | |
config.vm.box = "coreos" | |
config.vm.box_url = "http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant.box" | |
config.vm.network :private_network, ip: "192.168.65.#{i+1}" | |
config.vm.hostname = vm_name | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment