From: varac Date: Tue, 23 Jul 2013 20:49:23 +0000 (+0200) Subject: Vagrant: Give Virtualbox VMs a name (Feature #2496) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d6150c32cd970a2d8e7af126ac48cb752f6a79e3;p=leap%2Fleap_cli.git Vagrant: Give Virtualbox VMs a name (Feature #2496) --- 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