--- a/dev/Vagrantfile Sat Mar 01 09:48:26 2014 +0100
+++ b/dev/Vagrantfile Tue Mar 04 13:28:35 2014 +0100
@@ -1,6 +1,7 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
+
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
@@ -23,7 +24,7 @@
# Create a private network, which allows host-only access to the machine
# using a specific IP.
- config.vm.network :private_network, ip: "172.16.1.2"
+ config.vm.network :private_network, ip: (ENV['VM_IP'] || "172.16.1.2")
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
@@ -40,7 +41,10 @@
# argument is a set of non-required options.
config.vm.synced_folder "../", "/srv/comt"
- config.vm.define :coment_dev do |coment_dev|
+ #vmname = "coment_dev_5311da30" #"coment_dev_"+Time.now.getutc.to_f.to_int.to_s(16)
+ vmname = "coment_dev"
+
+ config.vm.define :"#{vmname}" do |coment_dev|
end
# Provider-specific configuration so you can fine-tune various
@@ -48,7 +52,7 @@
# Example for VirtualBox:
#
config.vm.provider :virtualbox do |vb|
- vb.name = "coment_dev"
+ vb.name = vmname
# # Don't boot with headless mode
# vb.gui = true
#