Remove invalid vagrantfile fields
This commit is contained in:
parent
ada96f13a3
commit
b8cffb62a4
24
Vagrantfile
vendored
24
Vagrantfile
vendored
@ -4,8 +4,9 @@
|
||||
# Ruby, run unit tests, etc.
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vbguest.auto_update = false
|
||||
config.vbguest.installer_options = { foo: 1, bar: 2 }
|
||||
# vagrant-vbguest plugin options
|
||||
# config.vbguest.auto_update = false
|
||||
# config.vbguest.installer_options = { foo: 1, bar: 2 }
|
||||
|
||||
config.vagrant.host = "linux"
|
||||
|
||||
@ -20,23 +21,22 @@ Vagrant.configure("2") do |config|
|
||||
v.customize ["modifyvm", :id, "--cpuexecutioncap", "50"]
|
||||
end
|
||||
|
||||
config.vm.provider "idontexist" do |v|
|
||||
v.gui = false
|
||||
v.something = ["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.vbguest.installer_options[:zort] = 3
|
||||
# c.vbguest.installer_options[:zort] = 3
|
||||
|
||||
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 "forwarded_port", guest: 80, host: 8081, auto_correct: true
|
||||
|
||||
c.vm.network "private_network", ip: "192.168.50.4", thing: "what"
|
||||
c.vm.network "public_network"
|
||||
# c.vm.network "public_network"
|
||||
c.vm.synced_folder "../tm", "/tm", type: "rsync", rsync__exclude: ".git/"
|
||||
end
|
||||
end
|
||||
@ -50,7 +50,7 @@ Vagrant.configure("2") do |config|
|
||||
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.network "forwarded_port", guest: 80, host: 8084, auto_correct: true
|
||||
c.vm.synced_folder ".", "vagrant", disabled: true
|
||||
|
||||
c.vm.provider "virtualbox" do |v|
|
||||
@ -59,6 +59,6 @@ Vagrant.configure("2") do |config|
|
||||
end
|
||||
|
||||
config.vm.provision "shell", inline: "echo hello world"
|
||||
config.vm.provision "idontexistinruby", key: "val", foo: "bar", communicator_required: false
|
||||
# config.vm.provision "idontexistinruby", key: "val", foo: "bar", communicator_required: false
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user