On Friday, January 11, 2013 2:14:46 PM UTC-6, Eric Sakowski wrote: > > Hi all, > > We've recently started exploring the role / profile / component module > described by Craig Dunn in his blog here: > http://www.craigdunn.org/2012/05/239/ and discussed on the list the other > day. As I was implementing this for > a profile using the apache module, I realized that I could make another > refinement to our approach by using > create_resources('class','<module name>') to pull our hiera data into the > apache class and override any defaults needed. > It looks good to me but there are some concerns that it will come back and > bite us in ways we don't expect > later on, when updating to Puppet 3.0.
Good news: it's unlikely that this will bite you later on. Bad news: that's because it will bite you now. Classes are not resources, and the create_resources() function does not work with them. John -- 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/-/cfY5ydWGjNoJ. 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.