No facts for host automatically added to puppet

I just ran the puppet agent on a host not in the puppet database yet. It
was automatically added but it has no facts and when I look at the host
details in foreman the facts button is not there. I've tried changing the
host's environment and hostgroup but that did not help.

Any suggestions?

Thanks!
Rob

Check the Foreman server's logs, it could be that the facts upload is
failing for some reason. You should see a POST "/api/hosts/facts" entry
in /var/log/foreman/production.log, which if successful will result in a
201 Created response.

··· On 11/06/16 01:20, holeofstench@gmail.com wrote: > I just ran the puppet agent on a host not in the puppet database yet. It > was automatically added but it has no facts and when I look at the host > details in foreman the facts button is not there. I've tried changing > the host's environment and hostgroup but that did not help. > > Any suggestions?


Dominic Cleal
dominic@cleal.org

Hi,

Was there any solution to this problem.

I don't see POST /api/hosts/facts in foreman/production.log even for those
machines where facts are uploaded.

Following are two scenarios where i don't see facts:

  1. Installed puppet agent on windows server 2012.
  2. Installed puppet agent on windows 7 and facts are uploaded. After this,
    i have renamed the host physically and ran the puppet agent. Foreman shows
    the new entry but no facts.

I'm not sure what is happening over here. Kindly help.

Thanks & Regards,
Harish Kothuri

··· On Tuesday, June 14, 2016 at 3:54:45 PM UTC+5:30, Dominic Cleal wrote: > > On 11/06/16 01:20, holeof...@gmail.com wrote: > > I just ran the puppet agent on a host not in the puppet database yet. It > > was automatically added but it has no facts and when I look at the host > > details in foreman the facts button is not there. I've tried changing > > the host's environment and hostgroup but that did not help. > > > > Any suggestions? > > Check the Foreman server's logs, it could be that the facts upload is > failing for some reason. You should see a POST "/api/hosts/facts" entry > in /var/log/foreman/production.log, which if successful will result in a > 201 Created response. > > -- > Dominic Cleal > dom...@cleal.org >