So you mean I have to edit “/etc/puppetlabs/puppet/puppet.conf” on the puppetserver?
Where do I get the node.rb from?
Do I have to put the dns name in the reports field?
So you mean I have to edit “/etc/puppetlabs/puppet/puppet.conf” on the puppetserver?
Yes, it is required for the full integration.
Where do I get the node.rb from?
Configuration is explained in the Facts and the ENC chapter in Foreman :: Manual which includes download link, configuration of the script and integration in Puppet server.
Do I have to put the dns name in the reports field?
No, it is the report processor. Download link, configuration and integration are in the Puppet Reports chapter of Foreman :: Manual
During the fact upload the server responded with: 403 Forbidden. Error is ignored and the execution continues.
{
"error": {"message":"Access denied","details":"Missing one of the required permissions: upload_facts"}
}
./node.rb:383: warning: constant ::TimeoutError is deprecated
As you mentioned you can get the classes I assumed you have configured the Puppet server as Smart Proxy in Foreman. Is this assumption correct? If not you are required to add the host as “Trusted puppetmaster hosts” in Administer > Settings > Authentication.
Another potential problem could be certificates if you created a second Puppet CA during Foreman installation as Foreman uses the Certificate infrastructure of Puppet.
You should also look in the log on the Foreman server (/var/log/foreman/production.log), it should have some more details why access was denied.
You mean we need to first install foreman-proxy on the puppet server and introduce it to the central Foreman, then following your instruction on the 2nd comment here, right?
there’s not any [master] part in the puppet.conf file of the current version; Do you mean the [main] section?
Yes, the foreman-proxy allows the integration of the puppet server (and with current versions you also need the puppet plugin for Foreman as the support was moved from core to a plugin)
In current puppet versions the section was renamed to [server] if I remember correctly.