1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00
Files
glusterd2/Vagrantfile
2016-10-17 16:06:40 +05:30

20 lines
577 B
Ruby

# This only works if you have a single GOPATH
#
Vagrant.configure("2") do |config|
(1..4).each do |i|
config.vm.define "gd2-#{i}" do |arch|
arch.vm.hostname = "gd2-#{i}"
arch.vm.provider "docker" do |d|
d.image = 'kshlm/glusterd2-dev:centos-latest'
d.name = "gd2-#{i}"
d.has_ssh = true
d.remains_running = true
d.volumes = [ENV["GOPATH"]+':/go']
d.create_args = ['--privileged']
# Use the below only if you have dnsdock setup
d.create_args += ['--dns', '172.17.0.1']
end
end
end
end