On 25/11/16 05:59, Amrit Atmajit wrote:
> 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*
What is logged by Foreman (production.log) when the Puppet agent runs?
It should log a fact upload, this may be partially failing to update the
IP/MAC on the hosts.
--
Dominic Cleal
[email protected]
--
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.