aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-07-23 22:49:23 +0200
committervarac <varacanero@zeromail.org>2013-07-25 20:01:33 +0200
commitd6150c32cd970a2d8e7af126ac48cb752f6a79e3 (patch)
tree5fbbc30e88f3428547815d84e39f61e6776f1bd4 /lib
parent35de71be644343abc5f16a15e671fff8c94910ab (diff)
downloadleap_cli-d6150c32cd970a2d8e7af126ac48cb752f6a79e3.tar.gz
leap_cli-d6150c32cd970a2d8e7af126ac48cb752f6a79e3.tar.bz2
Vagrant: Give Virtualbox VMs a name (Feature #2496)
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/commands/vagrant.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/vagrant.rb b/lib/leap_cli/commands/vagrant.rb
index 032fa36..f24cfb1 100644
--- a/lib/leap_cli/commands/vagrant.rb
+++ b/lib/leap_cli/commands/vagrant.rb
@@ -154,6 +154,7 @@ module LeapCli; module Commands
lines << %[ config.vm.box_url = "http://download.leap.se/leap-debian.box"]
lines << %[ config.vm.network :hostonly, "#{node.ip_address}", :netmask => "#{netmask}"]
lines << %[ config.vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]]
+ lines << %[ config.vm.customize ["modifyvm", :id, "--name", "#{node.name}"]]
lines << %[ #{leapfile.custom_vagrant_vm_line}] if leapfile.custom_vagrant_vm_line
lines << %[ end]
end