Foreman and default configs for all nodes

489 views
Skip to first unread message

Miles Monteleone

unread,
May 10, 2012, 1:43:59 PM5/10/12
to puppet...@googlegroups.com
I'm having some issues applying a default set of modules to all of my nodes managed by Foreman. I have around 20 nodes split among 4 environments. I have a node {default...} stanza in site.pp, but due to the way puppet handles ENCs, nothing from this is applied to my nodes. I have looked at host groups in Foreman, but they don't seem to do what I want, since they are applied per-environment. Basically I just want to duplicate the behavior of node {default} in Foreman. I don't care which environment they are in. Any ideas?

Craig White

unread,
May 10, 2012, 2:11:56 PM5/10/12
to puppet...@googlegroups.com

On May 10, 2012, at 10:43 AM, Miles Monteleone wrote:

> I'm having some issues applying a default set of modules to all of my nodes managed by Foreman. I have around 20 nodes split among 4 environments. I have a node {default...} stanza in site.pp, but due to the way puppet handles ENCs, nothing from this is applied to my nodes. I have looked at host groups in Foreman, but they don't seem to do what I want, since they are applied per-environment. Basically I just want to duplicate the behavior of node {default} in Foreman. I don't care which environment they are in. Any ideas?
----
the 'per environment' only means that you define the same host group and note that Foreman's host groups can be nested.

Craig

Ohad Levy

unread,
May 10, 2012, 3:13:49 PM5/10/12
to puppet...@googlegroups.com
On Thu, May 10, 2012 at 8:43 PM, Miles Monteleone <scratc...@gmail.com> wrote:
I'm having some issues applying a default set of modules to all of my nodes managed by Foreman. I have around 20 nodes split among 4 environments. I have a node {default...} stanza in site.pp, but due to the way puppet handles ENCs, nothing from this is applied to my nodes. I have looked at host groups in Foreman, but they don't seem to do what I want, since they are applied per-environment. Basically I just want to duplicate the behavior of node {default} in Foreman. I don't care which environment they are in. Any ideas?

you could always get foreman data, and merge it with your own set of defaults (via your own simple enc script).

Ohad 

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/X_QcI-6iqf0J.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Jake - USPS

unread,
May 11, 2012, 9:48:50 AM5/11/12
to puppet...@googlegroups.com
Does that mean there is currently not a way to do this straight in foreman?  This is something I would like also (as of yesterday :P).  I don't really want to script my own solution based off foreman data ... cause maybe my 'defaults' will change and I would love to have that tracked in foreman (kind of a single source of data) instead of the need to edit some script.

Thanks,
Jake

Jake - USPS

unread,
May 11, 2012, 11:32:25 AM5/11/12
to puppet...@googlegroups.com
Continuing discussion at thread in foreman users @  https://groups.google.com/forum/?fromgroups#!topic/foreman-users/uhW_EwO4LLg
Reply all
Reply to author
Forward
0 new messages