# This Vagrantfile can be used to develop Vagrant. Note that VirtualBox # doesn't run in VirtualBox so you can't actually _run_ Vagrant within # the VM created by this Vagrantfile, but you can use it to develop the # Ruby, run unit tests, etc. Vagrant.configure("2") do |config| config.vagrant.host = "hahah" config.ssh.connect_timeout = 30 config.winrm.username = "test" config.winrm.password = "test" config.vm.provider "virtualbox" do |v| v.default_nic_type = "82543GC" v.gui = false v.customize ["modifyvm", :id, "--cpuexecutioncap", "50"] end config.vm.provider "idontexist" do |v| v.gui = false v.something = ["modifyvm", :id, "--cpuexecutioncap", "50"] end ["a", "b"].each do |m| config.vm.define m do |c| c.vagrant.host = "ubuntu" c.winrm.host = "computer-#{m}" c.vm.hostname = "computer-#{m}" c.vm.box = "hashicorp/bionic64" c.vm.network "forwarded_port", guest: 80, host: 8080 c.vm.network "private_network", ip: "192.168.50.4", thing: "what" c.vm.network "public_network" c.vm.synced_folder "../tm", "/tm", type: "rsync", rsync__exclude: ".git/" end end config.vm.define "one" do |c| c.vm.hostname = "one" c.vm.usable_port_range = 8070..8090 c.vm.box = "bento/ubuntu" c.vm.provision "shell", inline: "echo hello world" c.vm.provision "shell" do |s| s.inline = "echo goodbye" end c.vm.provision "file", source: "/Users/sophia/project/vagrant-ruby/.gitignore", destination: "/.gitignore" c.vm.network "forwarded_port", guest: 80, host: 8080 c.vm.synced_folder ".", "vagrant", disabled: true c.vm.provider "virtualbox" do |v| v.gui = true end end config.vm.provision "shell", inline: "echo hello world" config.vm.provision "idontexistinruby", key: "val", foo: "bar", communicator_required: false end