templates/Vagrantfile.erb in kitchen-vagrant-0.13.0 vs templates/Vagrantfile.erb in kitchen-vagrant-0.14.0
- old
+ new
@@ -1,9 +1,11 @@
Vagrant.configure("2") do |c|
c.vm.box = "<%= config[:box] %>"
c.vm.box_url = "<%= config[:box_url] %>"
- c.vm.hostname = "<%= instance.name %>.vagrantup.com"
+<% if config[:vm_hostname] %>
+ c.vm.hostname = "<%= config[:vm_hostname] %>"
+<% end %>
<% if config[:guest] %>
c.vm.guest = <%= config[:guest] %>
<% end %>
<% if config[:username] %>
c.ssh.username = "<%= config[:username] %>"