Last active
August 29, 2015 14:01
-
-
Save bobzoller/7fd5d48fea67c83011e6 to your computer and use it in GitHub Desktop.
the old flynn/flynn-grid/cluster-test/Vagrantfile
This file contains hidden or 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
def docker_args(follower) | |
args = "-v=/var/run/docker.sock:/var/run/docker.sock -p=1113:1113" | |
args += " -e=ETCD_PEERS=10.1.2.10:55001" if follower | |
args | |
end | |
Vagrant.configure("2") do |config| | |
config.vm.box = "flynn-precise64" | |
config.vm.box_url = "https://s3.amazonaws.com/flynn/flynn-virtualbox-ubuntu_12.04.3-amd64.box" | |
config.vm.box_download_checksum = "d222d515e83e0d8a547c55f9e5cbaec703fd414f0d761193d9fee1c6066504cf" | |
config.vm.box_download_checksum_type = "sha256" | |
config.vm.define "n0" do |n| | |
n.vm.network "private_network", ip: "10.1.2.10", virtualbox__intnet: "flynn" | |
n.vm.provision "docker" do |d| | |
d.run "flynn/host", args: docker_args(false), cmd: "-external 10.1.2.10" | |
end | |
end | |
config.vm.define "n1" do |n| | |
n.vm.network "private_network", ip: "10.1.2.11", virtualbox__intnet: "flynn" | |
n.vm.provision "docker" do |d| | |
d.run "flynn/host", args: docker_args(true), cmd: "-external 10.1.2.11" | |
end | |
end | |
config.vm.define "n2" do |n| | |
n.vm.network "private_network", ip: "10.1.2.12", virtualbox__intnet: "flynn" | |
n.vm.provision "docker" do |d| | |
d.run "flynn/host", args: docker_args(true), cmd: "-external 10.1.2.12" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment