On Sat, Apr 7, 2012 at 11:50 PM, Jonathon Anderson
<anderbub...@gmail.com> wrote:
> I think there's something simple I'm missing about module best practices and
> application to nodes.
>
> Let's assume I've been a good module developer: I have a general-purpose
> module with no site- or node-specific knowledge, and it defines a number of
> classes (generalized with parameters, extlookup, hiera, whatever) and a few
> defined types.
>
> I can apply these classes--even parameterized classes--with an ENC, but, so
> far as I understand, I can't apply defined types directly to a node.  I need
> a class that contains those defined types that I would then apply to the
> node.

You can use create_resources to make this a bit more flexible and
dynamic with the ability to specify resources in your ENC:

https://github.com/puppetlabs/puppetlabs-create_resources

Thanks,

Nan

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to