Hi all, I''m currently looking out to implement puppet in our network. I''ve done a lot of reading (Pro Puppet book) and tested some of it''s features, which are working. Right now, I''m trying to find out a way to create a group for a node, here''s an example of what I would like : node default { include sssd } node ''group of members'' inherits default{ } Instead of declaring it for each nodes, is it possible to create a group? Excuse my low knowledge of puppet, but I can''t find a way to do it. Thanks! KP -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I think that Foreman has a terrific implementation of ''group'' mechanics (Hostgroup) Craig On Jan 6, 2012, at 9:17 AM, Kevin Pelletier wrote:> Hi all, > > I''m currently looking out to implement puppet in our network. I''ve done a lot of reading (Pro Puppet book) and tested some of it''s features, which are working. Right now, I''m trying to find out a way to create a group for a node, here''s an example of what I would like : > > > node default { > include sssd > } > > node ''group of members'' inherits default{ > } > > Instead of declaring it for each nodes, is it possible to create a group? Excuse my low knowledge of puppet, but I can''t find a way to do it. > > Thanks! > > KP > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white@ttiltd.com 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com Need help communicating between generations at work to achieve your desired success? Let us help! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Jan 6, 10:17 am, Kevin Pelletier <pelleti...@lexum.com> wrote:> Hi all, > > I''m currently looking out to implement puppet in our network. I''ve done a lot of reading (Pro Puppet book) and tested some of it''s features, which are working. Right now, I''m trying to find out a way to create a group for a node, here''s an example of what I would like : > > node default { > include sssd > > } > > node ''group of members'' inherits default{ > > } > > Instead of declaring it for each nodes, is it possible to create a group? Excuse my low knowledge of puppet, but I can''t find a way to do it.You can list multiple nodes in the same declaration: node ''node1'', ''node2'', ''node3'' inherits default { } Or you can use regular expressions to match node names to node declarations: node /node[123]/ inherits default { } I would have assumed that this was covered in Pro Puppet, but if not (and maybe even if so) then you should consider expanding your reading list to the Puppet documentation site http://docs.puppetlabs.com/. In particular, the Puppet Language Guide (http://docs.puppetlabs.com/ guides/language_guide.html) has a lot of details on various aspects of the Puppet DSL, including node declarations. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.