Message: undefined local variable or method `acs'

16 views
Skip to first unread message

Matt Russo

unread,
Jul 19, 2019, 1:43:56 PM7/19/19
to Vagrant
I just can seem to get this to work.  What am I missing?

Vagrant.configure("2") do |config|

config.vm.define "acs" do |acs|
acs.vm.box = "ubuntu/trusty64"
acs.vm.hostname = "acs"
acs.vm.network "private_network", ip: "192.168.33.10"
end
config.vm.define "web" do |web|
web.vm.box = "centos/7"
web.vm.hostname = "wed"
web.vm.network "private_network", ip: "192.168.33.20"
web.vm.network "forward_port", Guest: 80, host: 8080
end
config.vm.define "db" do |db|
acs.vm.box = "centos/7"
acs.vm.hostname = "dd"
acs.vm.network "private_network", ip: "192.168.33.30"
end
end

Brian Cain

unread,
Jul 19, 2019, 1:47:04 PM7/19/19
to vagra...@googlegroups.com
These variables should be "db", instead of "acs".
 
end
end

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/dc18ab60-4f03-4e49-84e9-73a5235b3890%40googlegroups.com.


--
Brian Cain
Reply all
Reply to author
Forward
0 new messages