Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

warning: Could not retrieve fact fqdn #47

Closed
ThePixelDeveloper opened this issue Jun 3, 2013 · 3 comments
Closed

warning: Could not retrieve fact fqdn #47

ThePixelDeveloper opened this issue Jun 3, 2013 · 3 comments

Comments

@ThePixelDeveloper
Copy link

When booting the machine you get this warning, worth fixing?

 warning: Could not retrieve fact fqdn
@frastel
Copy link
Contributor

frastel commented Jun 3, 2013

This is more a vagrant related thing. Vagrant names the host like the box name, e.g "precise64" and this is not valid hostname.
You may test it on your own:

touch test.pp
puppet apply test.pp

displays warning

sudo hostname devbox.local
puppet apply test.pp

no warning

sudo hostname precise64
puppet apply test.pp

again warning :)

Besides it is no real problem at all within a dev environment and Puppet standalone. Running Puppet in Puppet Master and Client mode it would be a problem as the machine has to retreive the hostname before provisioning which is not possible when named fact is not given.

@patrickheeney
Copy link

I resolved this by putting the code below in my default manifest:

if $virtual == "virtualbox" and $fqdn == '' {
  $fqdn = 'localhost'
}

@jtreminio
Copy link
Member

HI @patrickheeney ... thanks for this. I am unsure if I would add it in because while it may suppress the message during puppet provisioning (I haven't tried it yet), it would not suppress messages during the initial shell provisioning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants