Hi,

I am using two Puppet Servers, one is having the version as v3.8.7 and the 
other is having version as v4.7.0.

In Puppet v3.8.7, hosts details In am getting from foreman API is:

Foreman API: *https://<Puppet_Server_3.8.7>/api/hosts?per_page=99999*

Response: 

      {
      "ip": "10.65.229.45",                     
      "environment_id": 1,
      "environment_name": "production",
      "last_report": "2016-07-27 09:59:20 UTC",
      "mac": "c4:d9:87:67:eb:bb",
      "realm_id": null,
      "realm_name": null,
       ...
       ...
       ...
      "global_status": 0,
      "global_status_label": "Error",
      "puppet_status": 0,
      "model_name": "Latitude E6440",
      "configuration_status": 0,
      "configuration_status_label": "No reports",
      "name": "sdin803763.sdcorp.global.sandisk.com",
      "id": 34
    },

On the other hand, in  Puppet v4.7.0, all hosts details In am getting from 
foreman API is:

Foreman API: *https://<Puppet_Server_4.7.0>/api/hosts?per_page=99999*

Response: 
{
      "ip": null,
      "environment_id": 1,
      "environment_name": "production",
      "last_report": "2016-11-21 05:34:01 UTC",
      "mac": null,
      "realm_id": null,
      "realm_name": null,
      "sp_mac": null,
      "sp_ip": null,
      ...
      ...
      ...
      "configuration_status_label": "Out of sync",
      "name": "asus_n550j.cssvalidation.com",
      "id": 7,
      "hostgroup_name": null,
      "hostgroup_title": null
    },

As per the above highlighted attributes from Foreman APIs are fetched 
properly in Puppet v3.8.7. On the other hand, most of the attributes are 
fetched as "null" in Puppet v4.7.0.

But, these attributes are coming properly from the following Foreman API of 
both the Puppet Servers.
Foreman API to get the fat_values: 
*https://<Both_Puppet_Server>/api/v2/fact_values?per_page=99999*

Am I missing any configuration to be set in Puppet Server v4.7.0 to get the 
proper attributes using "hosts" API?

Anybody please help me on this.

Thanks and Regards,
Amrit

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to