Puppet with Foreman for reports but noch ENC

129 views
Skip to first unread message

Andreas Dvorak

unread,
Oct 20, 2015, 8:48:59 AM10/20/15
to Puppet Users
Hello,

currently I am running a Puppet Master with Foreman for reports and ENC and I have only one environment. The environment parameter in the file puppet.conf is not used because Foreman is an ENC.
Now I want to configure different environments and want to set the environment in the puppet.conf of the Puppet agent.

What is the best installation method for a new Puppet Master?
- foreman-installer and configure foreman without ENC, but I don't know the relevant settings.
- Installation of puppet-server without foreman and add foreman later for the reports

Best regards,
Andreas

David Schmitt

unread,
Oct 20, 2015, 12:41:54 PM10/20/15
to puppet...@googlegroups.com
Hi Andreas,
The master and foreman are connected by two settings in the master's
puppet.conf.

The ENC is described at
https://docs.puppetlabs.com/guides/external_nodes.html#connecting-an-enc
, the report destination is handled by
https://docs.puppetlabs.com/references/latest/configuration.html#report

Those two settings are independent of each other and can be changed at
will (modulo a restart of the master/server). How you do that depends on
the way you are managing those settings.


Hope that helped, D.

Andreas Dvorak

unread,
Oct 21, 2015, 6:43:58 AM10/21/15
to Puppet Users
Hi,

thank you I will remove the two lines
   external_nodes = /etc/puppet/node.rb
   node_terminus  = exec
from the puppet.conf file.

Andreas

Toni Schmidbauer

unread,
Oct 22, 2015, 4:02:58 PM10/22/15
to Andreas Dvorak, Puppet Users
Andreas Dvorak <andreas...@gmail.com> writes:
> currently I am running a Puppet Master with Foreman for reports and
> ENC and I have only one environment. The environment parameter in the
> file puppet.conf is not used because Foreman is an ENC.
> Now I want to configure different environments and want to set the
> environment in the puppet.conf of the Puppet agent.

you could also set 'enc_environment' to 'false' within foreman. it's
under 'Administer -> Settings -> Puppet'.

When set to 'false' foreman will not add the environment to the ENC's
yaml output. so you can keep node.rb that comes with foreman and
use all the other features it provides (e.g. adding classes, smart
variables...)

toni

Andreas Dvorak

unread,
Oct 23, 2015, 3:36:59 AM10/23/15
to Puppet Users, andreas...@gmail.com
Hi Toni,

thank you for the tip. That is an eays way to solve my problem.

Andreas
Reply all
Reply to author
Forward
0 new messages