github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/samba-dc/Vagrantfile (about)

     1  # -*- mode: ruby -*-
     2  # vi: set ft=ruby :
     3  
     4  # Notes:
     5  #
     6  #  1) vboxnet0 is assumed to be a host-only network @ address 172.28.128.1 (DHCP disabled)
     7  #  2) Though not required, GOPATH is assumed to be the ../../../../../ directory
     8  #  3) The directory on the VM Host will be /vagrant on the VM and be the path in GOPATH
     9  
    10  Vagrant.configure(2) do |config|
    11    ['1', '2', '3', '4'].each do |idx|
    12      config.vm.define 'sdc'+idx do |node|
    13        node.vm.box = "centos-74-minimal-20171228"
    14        node.vm.box_url = "https://o.swiftstack.org/v1/AUTH_misc/vagrant_boxes/centos-74-minimal-20171228.box"
    15        node.vm.provider :virtualbox do |vb|
    16          vb.name = 'Samba DC '+idx
    17          vb.cpus = Integer(ENV['VAGRANT_CPUS'] || 1)
    18          vb.memory = Integer(ENV['VAGRANT_RAM'] || 1024)
    19        end
    20        node.vm.synced_folder "../../../../../", "/vagrant", type: "virtualbox"
    21        node.vm.network "private_network", ip: '172.28.128.1'+idx, :name => 'vboxnet0', :adapter => 2
    22        node.vm.provision "shell" do |s|
    23          s.path = "vagrant_provision.sh"
    24          s.args = ['sdc'+idx, '172.28.128.1'+idx, 'sdom'+idx]
    25        end
    26      end
    27    end
    28  end