Skip to content
Snippets Groups Projects
Commit 1c5141ec authored by User expired's avatar User expired
Browse files

Some changes to disable local mode on dbis-isochrone production server

parent 86b9e176
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,16 @@ ...@@ -3,6 +3,16 @@
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2" VAGRANTFILE_API_VERSION = "2"
HOSTNAME=`hostname -s`
isLocalMode=true
if HOSTNAME.strip.eql? "dbis-w65107"
# puts "Server mode"
isLocalMode=false
else
# puts "Local mode"
isLocalMode=true
end
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Enable vagrant-cachier plugin # Enable vagrant-cachier plugin
...@@ -27,7 +37,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| ...@@ -27,7 +37,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.synced_folder "etc/vagrant/img", "/setup/img" config.vm.synced_folder "etc/vagrant/img", "/setup/img"
# Setup environment on startup (done using a shell script) # Setup environment on startup (done using a shell script)
config.vm.provision "shell", path: "etc/vagrant/bootstrap.sh", args: ["niko", "secretPhdPassword#2014!", "true"] config.vm.provision "shell", path: "etc/vagrant/bootstrap.sh", args: ["niko", "secretPhdPassword#2014!", (isLocalMode ? "true" : "false")]
# Network configuration # Network configuration
config.vm.network :forwarded_port, guest: 8080, host: 8080, auto_correct: true, id: "tomcat" config.vm.network :forwarded_port, guest: 8080, host: 8080, auto_correct: true, id: "tomcat"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment