vagrantfile: expose Nomad and Consul APIs to local machine.

This commit is contained in:
James Rasell
2021-10-27 12:15:37 +02:00
parent 6852f21ddd
commit 6c7cedf59b

4
Vagrantfile vendored
View File

@@ -17,6 +17,10 @@ Vagrant.configure(2) do |config|
vmCfg = configureLinuxProvisioners(vmCfg)
# Expose Nomad and Consul ports for ease.
vmCfg.vm.network :forwarded_port, guest: 4646, host: 4646, auto_correct: true, host_ip: "127.0.0.1"
vmCfg.vm.network :forwarded_port, guest: 8500, host: 8500, auto_correct: true, host_ip: "127.0.0.1"
vmCfg.vm.synced_folder '.',
'/opt/gopath/src/github.com/hashicorp/nomad'