when I provision a host using Foreman (on a VMware compute resource, OS
RedHat 6.3, the provision template is more or less the Kickstart default
one), the first puppet run after the system is built always fails.
It doesn't fail with an error, it just returns a warning:
Unable to fetch my node definition, but the agent run will continue:
Error 400 on SERVER: Failed to find <omitted_hostname> via exec:
Execution of '/etc/puppet/node.rb <omitted_hostname>' returned 1:
(I have the full FQDN in the log instead of <omitted_hostname> of course)
But then all puppet classed are skipped, nothing is applied in this first
Soon after this (1-2 minutes), puppet runs again and this time it works
through the end.
I suppose the first run is the one launched by the provision template,
while the second one is the first run by the installed daemon.
Is this an expected behaviour?
Or is there a way I can fix this?
What can be the reason?
Looks like the server cannot resolve the hostname, yet. But the DNS entry
should already have been created, and the DNS server is the same machine
where Foreman and the Puppet master run.
Thanks for any info.