mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
vagrant: Export services without port mapping
By having an ip address by default, developers can access any service on the Vagrant linux box without needing to setup port maps.
This commit is contained in:
6
Vagrantfile
vendored
6
Vagrantfile
vendored
@@ -5,6 +5,8 @@
|
||||
LINUX_BASE_BOX = "bento/ubuntu-16.04"
|
||||
FREEBSD_BASE_BOX = "freebsd/FreeBSD-11.2-STABLE"
|
||||
|
||||
LINUX_IP_ADDRESS = "10.199.0.200"
|
||||
|
||||
Vagrant.configure(2) do |config|
|
||||
# Compilation and development boxes
|
||||
config.vm.define "linux", autostart: true, primary: true do |vmCfg|
|
||||
@@ -21,6 +23,10 @@ Vagrant.configure(2) do |config|
|
||||
vmCfg.vm.provision "shell",
|
||||
privileged: false,
|
||||
path: './scripts/vagrant-linux-unpriv-bootstrap.sh'
|
||||
|
||||
vmCfg.vm.provider "virtualbox" do |_|
|
||||
vmCfg.vm.network :private_network, ip: LINUX_IP_ADDRESS
|
||||
end
|
||||
end
|
||||
|
||||
config.vm.define "linux-ui", autostart: false, primary: false do |vmCfg|
|
||||
|
||||
Reference in New Issue
Block a user