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 305e8e98bf
commit e4f703b401
No known key found for this signature in database
GPG Key ID: AA7D460F5C8377AA
1 changed files with 4 additions and 0 deletions

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'