On Monday, January 14, 2013 7:49:33 AM UTC-8, R.I. Pienaar wrote:

>
> No I am not sure - I dont tend to use create_resources as I consider it 
> about 
> as bad as eval() :) 
>
> I just know I recently went spelunking into that code while doing some 
> prototype 
> and noticed it worked 
>

Sorry to derail this discussion, but R.I., what is it that you find bad 
about create_resources? I've found it invaluable when creating resources 
from definitions. 

For example, I have an apache::conf definition for a config file, and I 
create a hash for each config file I want created on the node. Then just 
use "create_resources(apache::conf, $apache_conf_hash)" in the module's 
init.pp. 

How would you do it otherwise? Documentation on Hiera is pretty lacking 
right now, and it's the best method I've found for this sort of thing. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/zt2SdyPBJxsJ.
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