I''d like to setup node templates for a variety of developer VMs that we are looking to manage through puppet. This may be in the documentation already, and if so, I apologize for missing it, but is it possible to use wildcards within the node definition. I''d like to do something like this: Hostname: JonsWebDev node devnode { import devconfig } node webnode { import webconfig } node "*WebDev" { import devnode import webnode } Thanks in advance. -Jon -- 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.
Jon Charette wrote:> I''d like to setup node templates for a variety of developer VMs that we > are looking to manage through puppet. > > This may be in the documentation already, and if so, I apologize for > missing it, but is it possible to use wildcards within the node definition.Yes, it is. -- Craig Miskell Senior Systems Administrator Opus International Consultants Phone: +64 4 471 7209 AMAZING BUT TRUE ... If all the salmon caught in Canada in one year were laid end to end across the Sahara Desert, the smell would be absolutely awful. -- 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.
Regular expressions - even better: http://docs.puppetlabs.com/guides/language_tutorial.html#matching_nodes_with_regular_expressions Also - what you probably want to look at is using classes for your ''templates'': http://docs.puppetlabs.com/guides/language_tutorial.html#classes ken. On May 20, 8:53 pm, Jon Charette <jon.chare...@gmail.com> wrote:> I''d like to setup node templates for a variety of developer VMs that we are > looking to manage through puppet. > > This may be in the documentation already, and if so, I apologize for missing > it, but is it possible to use wildcards within the node definition. > > I''d like to do something like this: > > Hostname: JonsWebDev > > node devnode { > import devconfig > > } > > node webnode { > import webconfig > > } > > node "*WebDev" { > import devnode > import webnode > > } > > Thanks in advance. > -Jon > > -- > 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 athttp://groups.google.com/group/puppet-users?hl=en.-- 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.
exactly what I needed. Thanks much Ken. On Thu, May 20, 2010 at 5:02 PM, Ken Barber <ken@bob.sh> wrote:> Regular expressions - even better: > > > http://docs.puppetlabs.com/guides/language_tutorial.html#matching_nodes_with_regular_expressions > > Also - what you probably want to look at is using classes for your > ''templates'': > > http://docs.puppetlabs.com/guides/language_tutorial.html#classes > > ken. > > On May 20, 8:53 pm, Jon Charette <jon.chare...@gmail.com> wrote: > > I''d like to setup node templates for a variety of developer VMs that we > are > > looking to manage through puppet. > > > > This may be in the documentation already, and if so, I apologize for > missing > > it, but is it possible to use wildcards within the node definition. > > > > I''d like to do something like this: > > > > Hostname: JonsWebDev > > > > node devnode { > > import devconfig > > > > } > > > > node webnode { > > import webconfig > > > > } > > > > node "*WebDev" { > > import devnode > > import webnode > > > > } > > > > Thanks in advance. > > -Jon > > > > -- > > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > > For more options, visit this group athttp:// > groups.google.com/group/puppet-users?hl=en. > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- 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.