Connecting Foreman with Puppet

I have been looking through the posts, but have not really found how to
connect my Foreman Server to my existing Puppetmaster server and seperate
puppet database server. I already have puppetmaster managing all VMs/real
machines & puppet database collecting facts & reports and now need to
integrate foreman with puppet to include manifest/class files, installation
and server provisioning ability. Have to connect it to Puppetdb to
integrate and manage facts & reports.

Thanks
Sai Krishna

> I have been looking through the posts, but have not really found how to
> connect my Foreman Server to my existing Puppetmaster server and seperate
> puppet database server. I already have puppetmaster managing all VMs/real
> machines & puppet database collecting facts & reports and now need to
> integrate foreman with puppet to include manifest/class files, installation
> and server provisioning ability. Have to connect it to Puppetdb to
> integrate and manage facts & reports.

Have you been to:
https://theforeman.org/manuals/1.12/index.html#3.2.3InstallationScenarios

Search for PuppetDB

··· -- Later, Lukas #lzap Zapletal

Foreman doesn't use PuppetDB to show facts and reports, I'd suggest
ignoring that for now.

For reports, follow the reports section of the manual to install the
'foreman' report processor:
https://theforeman.org/manuals/1.12/index.html#3.5.4PuppetReports

Foreman can act as an external node classifier (ENC) for Puppet nodes,
rather than say, using node { } definitions. If you want this then it's
the easiest way to have fact uploads:
https://theforeman.org/manuals/1.12/index.html#3.5.5FactsandtheENC

If not, then see the "Pushing facts to Foreman when not using the ENC
functionality" sub-section at the same link.

For importing classes to use the ENC, you need to install a smart proxy
on the Puppet master with the Puppet feature enabled. See:
https://theforeman.org/manuals/1.12/index.html#4.3SmartProxies
https://theforeman.org/manuals/1.12/index.html#4.3.6Puppet

Once you can import classes then you can also assign the Puppet master
to hosts during provisioning. Enabling the Puppet CA feature on the
smart proxy
(Foreman :: Manual) means
Foreman can also help sign certificates during provisioning.

You may find it easier to migrate agents to use the Puppet master
installed with Foreman than to set up all of the integration manually.

The puppetdb_foreman plugin can integrate Foreman more with PuppetDB by
showing PuppetDB info in the Foreman UI and for deletion of hosts, but
this isn't necessary for what you're asking. You can look at it separately.

··· On 12/07/16 03:26, saikrishnakhanday@gmail.com wrote: > I have been looking through the posts, but have not really found how to > connect my Foreman Server to my existing Puppetmaster server and > seperate puppet database server. I already have puppetmaster managing > all VMs/real machines & puppet database collecting facts & reports and > now need to integrate foreman with puppet to include manifest/class > files, installation and server provisioning ability. Have to connect it > to Puppetdb to integrate and manage facts & reports.


Dominic Cleal
dominic@cleal.org