Feature #2269

Node list feature

Added by John Motson over 1 year ago. Updated over 1 year ago.

Status:Rejected Start:05/17/2009
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:node
Target version:-
Affected version:0.24.8 Branch:
Keywords:
Votes: 0

Description

Hi,

I would like to see a feature to define a list of nodes in Puppet. As far as I understand, we can currently define multiple nodes like this:

node server1, server2, server3 { include someresource }

This wouldn’t scale very well with puppetrun, because I would have to use something like: sudo puppetrun —host server1 —host server2 —host server3 where the number of nodes could be 100.

Instead, I would like to have a node list like this: nodelist servergroup1 { server1, server2, server3 include resources }

and I can puppetrun this with puppetrun —nodelist servergroup1

A feature to group nodes together adds a layer of abstraction in node management. It’s very common to want to group similar nodes (i.e. servers under a single load-balancer) and be able to apply the same configuration in one shot, without having to go through each node definition and update appropriate resources.

If there is already a way to do this, my apologies for not knowing puppet enough. As far as I have asked around on IRC #puppet, people only pointed me to listing multiple hosts in one line like I described here.

History

Updated by James Turnbull over 1 year ago

  • Category set to node
  • Status changed from Unreviewed to Needs design decision

We’ve always tended to push people at External and LDAP nodes when wanting groupings like this:

http://reductivelabs.com/trac/puppet/wiki/ExternalNodes http://reductivelabs.com/trac/puppet/wiki/LDAPNodes

I’ve never had a real objection to a node_group or something syntax but someone would have to develop the code and tests for such a beast.

Updated by Luke Kanies over 1 year ago

  • Status changed from Needs design decision to Rejected

Yeah, this behaviour definitely belongs in the external node tool. Puppetrun can even talk to ldap, getting node group information (classes are essentially node groups).

Also available in: Atom PDF