Hi,
Im working on Iaac project where im trying to run multi-machine for app and db server.
I have validated my vagrant file below is the vagrant file. While turning up the machines by vagrant up getting below errors
C:/Users/Admin/.vagrant.d/gems/2.7.6/gems/rubyhacks-0.1.5/lib/rubyhacks.rb:361:in <=>': undefined method
old_compare’ for nil:NilClass (NoMethodError)
from C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/mime-types-3.4.1/lib/mime/type.rb:175:in `<=>'
from C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/mime-types-3.4.1/lib/mime/types.rb:168:in `=='
from C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/mime-types-3.4.1/lib/mime/types.rb:168:in `add'
from C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/mime-types-3.4.1/lib/mime/types/_columnar.rb:33:in `block in load_base_data'
from C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/mime-types-3.4.1/lib/mime/types/_columnar.rb:55:in `block (2 levels) in each_file_line'
from C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/mime-types-3.4.1/lib/mime/types/_columnar.rb:48:in `each'
from C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/mime-types-3.4.1/lib/mime/types/_columnar.rb:48:in `block in each_file_line'
from C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/mime-types-3.4.1/lib/mime/types/_columnar.rb:42:in `synchronize'
from C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/mime-types-3.4.1/lib/mime/types/_columnar.rb:42:in `each_file_line'
from C:/HashiCorp/Vagrant/embedded/gems/2.3.4/gems/mime-types-3.4.1/lib/mime/types/_columnar.rb:25:in `load_base_data'
VAGRANTFILE
$ cat Vagrantfile
Vagrant.configure(“2”) do |config|
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
Nginx VM
config.vm.define “web01” do |web01|
web01.vm.box = “ubuntu/bionic64”
web01.vm.hostname = “web01”
web01.vm.network “private_network”, ip: “192.168.60.11”
end
tomcat vm
config.vm.define “app01” do |app01|
app01.vm.box = “geerlingguy/centos7”
app01.vm.hostname = “app01”
app01.vm.network “private_network”, ip: “192.168.60.12”
app01.vm.provider “virtualbox” do |vb|
vb.memory = “1024”
end
end
RabbitMQ vm
config.vm.define “rmq01” do |rmq01|
rmq01.vm.box = “geerlingguy/centos7”
rmq01.vm.hostname = “rmq01”
rmq01.vm.network “private_network”, ip: “192.168.60.16”
end
Memcache vm
config.vm.define “mc01” do |mc01|
mc01.vm.box = “geerlingguy/centos7”
mc01.vm.hostname = “mc01”
mc01.vm.network “private_network”, ip: “192.168.60.14”
end
DB vm
config.vm.define “db01” do |db01|
db01.vm.box = “geerlingguy/centos7”
db01.vm.hostname = “db01”
db01.vm.network “private_network”, ip: “192.168.60.15”
end
end
please Guide me on this