Problem:
Puppet Server now uses JSON for facts instead of YAML, but Foreman is not importing the information.
In Puppetserver 6.20.0 support was added for a JSON fact cache and
Puppetserver 7 defaults to JSON. JSON is faster than YAML and doesn’t
have quirks like the mac address which is parsed different depending on
Ruby versions.
The JSON files are updated and located in
/opt/puppetlabs/server/data/puppetserver/server_data/facts
The old directory for the YAML files is
/opt/puppetlabs/server/data/puppetserver/yaml/facts
The YAML files are no longer updated. Foreman does not import the JSON data into the database. Reports are working fine, just not Facts.
Any ideas?
Expected outcome:
Facts get imported into the Postgres database “foreman”
Foreman and Proxy versions:
Foreman 1.22.2
Puppet Server 7.6.0
Distribution and version:
CentOS Linux release 7.9.2009 (Core)
Other relevant data: