devopsgroup-io/vagrant-hostmanager

Allow variables in hostname

Closed this issue · 1 comments

I am setting the hostname using a variable but I get a notification that won't proceed:

* The hostname set for the VM should only contain letters, numbers,
hyphens or dots. It cannot start with a hyphen or dot.

app.vm.hostname = "#{ENV['SITENAME']}.localdev"

oops, ignore me... I accidentally didn't define my variable so it was attempted to start the hostname with a dot.