Foreman and external puppet server

Hi,

we already have a productive Puppet Server (4) running on another machine.

Is there a way to use Foreman with this existing Puppet Server and if yes how is it possible? The manual is a little bit difuse on that topic.

Greetings
Tobias

1 Like

When we looked at the scenario guide at
https://theforeman.org/manuals/1.13/index.html#3.2.3InstallationScenarios
towards the bottom it explains how to create a separate foreman with the
installer.
foreman-installer
–puppet-server=false
–foreman-proxy-puppet=false
–foreman-proxy-puppetca=false

Then on your current puppet master

foreman-installer -v \

–no-enable-foreman \

–no-enable-foreman-cli \

–no-enable-foreman-plugin-bootdisk \

–no-enable-foreman-plugin-setup \

–enable-puppet \

–puppet-server-ca=false \ if this does not have ca services**

–puppet-server-foreman-url=https://foreman.com \

–enable-foreman-proxy \

–foreman-proxy-puppetca=false \

–foreman-proxy-tftp=false \

–foreman-proxy-foreman-base-url=https://foreman.com \

–foreman-proxy-trusted-hosts=foreman.com \

–foreman-proxy-oauth-consumer-key=***Copied from you foreman install \

–foreman-proxy-oauth-consumer-secret==***Copied from you foreman install \

–puppet-ca-server=ca_server.com

I hope this helps. If I am incorrect please let me know.

Have a great day.

··· On Monday, October 31, 2016 at 12:36:17 PM UTC-5, Tobias Köck wrote:

Hi,

we already have a productive Puppet Server (4) running on another machine.

Is there a way to use Foreman with this existing Puppet Server and if yes
how is it possible? The manual is a little bit difuse on that topic.

Greetings

Tobias

1 Like

Hi Mr. McMahan,

thank you for the answer. I'll try it out.

I have tried the interactive version

foreman-installier -i

Is there somewhere a mapping of the command line options with the interactive options or where do I have to check it in the scripts?

Greetings and thanks,
Tobias

··· Von: Jason McMahan [mailto:jason.m.mcmahan@gmail.com] Gesendet: Montag, 31. Oktober 2016 19:03 An: Foreman users Cc: Tobias Köck Betreff: Re: foreman and external puppet server

When we looked at the scenario guide at Foreman :: Manual
towards the bottom it explains how to create a separate foreman with the installer.
foreman-installer
–puppet-server=false
–foreman-proxy-puppet=false
–foreman-proxy-puppetca=false

Then on your current puppet master

foreman-installer -v \

–no-enable-foreman \

–no-enable-foreman-cli \

–no-enable-foreman-plugin-bootdisk \

–no-enable-foreman-plugin-setup \

–enable-puppet \

–puppet-server-ca=false \ if this does not have ca services**

–puppet-server-foreman-url=https://foreman.com \

–enable-foreman-proxy \

–foreman-proxy-puppetca=false \

–foreman-proxy-tftp=false \

–foreman-proxy-foreman-base-url=https://foreman.com \

–foreman-proxy-trusted-hosts=foreman.com \

–foreman-proxy-oauth-consumer-key=***Copied from you foreman install \

–foreman-proxy-oauth-consumer-secret==***Copied from you foreman install \

–puppet-ca-server=ca_server.com

I hope this helps. If I am incorrect please let me know.

Have a great day.

On Monday, October 31, 2016 at 12:36:17 PM UTC-5, Tobias Köck wrote:
Hi,

we already have a productive Puppet Server (4) running on another machine.

Is there a way to use Foreman with this existing Puppet Server and if yes how is it possible? The manual is a little bit difuse on that topic.

Greetings
Tobias

Hi,

thanks for the information.

I am wondering if it makes sense to move the Puppet CA also to the external Puppet Server. Do I even need a puppet instalation at all on the Foreman server?

Background is we are already using a Puppet Server and I don't want to use a second one without having a reason to do so (e.g. Foreman requires it).

I have read in the documentation but unfortunatelly the documentation is more or less vague how Foreman is connected to puppet. I am often thinking 'why is that so' and 'why isn't there more deeper information to read'.

Greetings
Tobias

··· Von: Jason McMahan [mailto:jason.m.mcmahan@gmail.com] Gesendet: Montag, 31. Oktober 2016 19:03 An: Foreman users Cc: Tobias Köck Betreff: Re: foreman and external puppet server

When we looked at the scenario guide at Foreman :: Manual
towards the bottom it explains how to create a separate foreman with the installer.
foreman-installer
–puppet-server=false
–foreman-proxy-puppet=false
–foreman-proxy-puppetca=false

Then on your current puppet master

foreman-installer -v \

–no-enable-foreman \

–no-enable-foreman-cli \

–no-enable-foreman-plugin-bootdisk \

–no-enable-foreman-plugin-setup \

–enable-puppet \

–puppet-server-ca=false \ if this does not have ca services**

–puppet-server-foreman-url=https://foreman.com \

–enable-foreman-proxy \

–foreman-proxy-puppetca=false \

–foreman-proxy-tftp=false \

–foreman-proxy-foreman-base-url=https://foreman.com \

–foreman-proxy-trusted-hosts=foreman.com \

–foreman-proxy-oauth-consumer-key=***Copied from you foreman install \

–foreman-proxy-oauth-consumer-secret==***Copied from you foreman install \

–puppet-ca-server=ca_server.com

I hope this helps. If I am incorrect please let me know.

Have a great day.

On Monday, October 31, 2016 at 12:36:17 PM UTC-5, Tobias Köck wrote:
Hi,

we already have a productive Puppet Server (4) running on another machine.

Is there a way to use Foreman with this existing Puppet Server and if yes how is it possible? The manual is a little bit difuse on that topic.

Greetings
Tobias

The command line options are in the form "–MODULE-PARAMETER", so
–puppet-server is the module 'puppet' (first menu), parameter 'server'
(second menu), and --foreman-proxy-puppet is in the 'foreman_proxy'
module, 'puppet' parameter.

··· On 01/11/16 14:23, Tobias Köck wrote: > Hi Mr. McMahan, > > > > thank you for the answer. I'll try it out. > > > > I have tried the interactive version > > > > foreman-installier -i > > > > Is there somewhere a mapping of the command line options with the > interactive options or where do I have to check it in the scripts?

–
Dominic Cleal
dominic@cleal.org

1 Like