vagrantfile: expose Nomad and Consul APIs to local machine.
This commit is contained in:
parent
305e8e98bf
commit
e4f703b401
|
@ -17,6 +17,10 @@ Vagrant.configure(2) do |config|
|
||||||
|
|
||||||
vmCfg = configureLinuxProvisioners(vmCfg)
|
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 '.',
|
vmCfg.vm.synced_folder '.',
|
||||||
'/opt/gopath/src/github.com/hashicorp/nomad'
|
'/opt/gopath/src/github.com/hashicorp/nomad'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue