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:
Mahmood Ali
2019-09-06 14:27:26 -04:00
parent eec2033387
commit 8f68f5c13b

6
Vagrantfile vendored
View File

@@ -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|