From 6c7cedf59bd6d427c2ccc068293164a16c9316bb Mon Sep 17 00:00:00 2001 From: James Rasell Date: Wed, 27 Oct 2021 12:15:37 +0200 Subject: [PATCH] vagrantfile: expose Nomad and Consul APIs to local machine. --- Vagrantfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index f55b623b7..ba5cb0780 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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'