devopsgroup-io / vagrant-hostmanager

:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Mozilla Public License 2.0
1.46k stars 146 forks source link

Allow variables in hostname #180

Closed nalipaz closed 8 years ago

nalipaz commented 8 years ago

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"

nalipaz commented 8 years ago

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