You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this falls under the purview of the Vagrant project, but the way it manifests itself is that our tests via the test-kitchen project fail due to the node['fqdn'] attribute being nil (since it is set by running hostname --fqdn).
It seems like setting a hostname should result in the VM having a FQDN (which is usually accomplished by adding an alias in /etc/hosts). Thoughts?
The text was updated successfully, but these errors were encountered:
I think I'm running into a similar issue where the hostname is partially updated and not on /etc/hosts (the output of hostname is correct). If I manually edit /etc/hosts the output of hostname --fqdn is correct.
This is a bug in Vagrant 1.6.5, a fix has been provided and merged in #4465, but no new version has been released. I have a monkeypatch that does the same in https://github.com/Asquera/vagrant-patches. It's a bit rough and YMMV, but I'm accepting feedback :)
With Vagrant 1.6.5, using the following
Vagrantfile
:Running
vagrant up
followed byvagrant ssh -c "hostname --fqdn"
outputs:Whereas for a
Vagrantfile
for some other OS (Ubuntu in this case):...the same steps would output:
I'm not sure if this falls under the purview of the Vagrant project, but the way it manifests itself is that our tests via the
test-kitchen
project fail due to thenode['fqdn']
attribute beingnil
(since it is set by runninghostname --fqdn
).It seems like setting a hostname should result in the VM having a FQDN (which is usually accomplished by adding an alias in
/etc/hosts
). Thoughts?The text was updated successfully, but these errors were encountered: