Cashdollar, Matthew
2011-Mar-08 04:53 UTC
[Puppet Users] Defines in External node classifier
Hello, Does anyone know if external node classifiers support defined resource types? I am able to do it through the internal ''node X { }'' but I''m not sure if this is possible with the external node yaml. I started by doing it with parameterized classes as described here: http://projects.puppetlabs.com/issues/5045 However I found some cases where there were multiple instances of the same thing running on the server with slightly different parameters. For this reason I had to use define instead of class. Thanks Matt -- 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.
HI Matthew, Have a look at this custom function that I wrote: https://github.com/puppetlabs/create_resources The README has an example of how to pass defined resources as class parameters through an ENC. On Mon, Mar 7, 2011 at 8:53 PM, Cashdollar, Matthew <MCashdollar@orbitz.com>wrote:> Hello, > > Does anyone know if external node classifiers support defined resource > types? I am able to do it through the internal ''node X { }'' but I''m not > sure if this is possible with the external node yaml. > > I started by doing it with parameterized classes as described here: > http://projects.puppetlabs.com/issues/5045 > > However I found some cases where there were multiple instances of the same > thing running on the server with slightly different parameters. For this > reason I had to use define instead of class. > > Thanks > Matt > > -- > 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. > >-- 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.