virtualbox - Why does Vagrant truncate hostname -


i'm setting hostname in vagrantfile so:

config.vm.hostname = "demo.puppet" 

however ends host name of demo:

vagrant@demo:~$ hostname demo 

it seems vagrant truncate @ first ., expected behaviour plenty of examples on web seem have hostnames . in them.

it doesn't have vagrant. hostname cannot contain a-z, 0-9, , dash (-). when set hostname, setting hostname "demo" in domain "puppet". should use "demo-puppet" instead.

as side note, i've started making habit of including hostname of vagrant host in vm hostnames. can come in handy later, instance when deploying build, can include hostname deployed. line this: config.vm.hostname = "myapp-vagrant-#{hostname[0..-2]}" in vagrantfile trick, setting hostname (in case) "myapp-vagrant-nhoover-osx".


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -