On 10/14/15 12:33 PM, Marc Teale wrote:

So I'm asking if there's a best practices method of creating foobar
instances from Hiera definitions, be it in another module that does
nothing but run create_resources(foobar::instance), modifying the module
and then submitting a pull request, or...?

Thanks,
Marc

The community answer so far has been to wrap it in a profile class. A wrapper classes solves the problem of the lookup for creating the instances and anything else that might need to be done per instance that is unique to your environment.

I did a talk earlier this year talking about what goes into profile classes and what problems they solve. Full txt of the talk is also in the repo.

https://github.com/rkhatibi/sipmug-feb2015/blob/master/Role-Profile-%20What%20goes%20in%20the%20profile%20part.pdf

Ramin

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/561EB5CC.4050108%40badapple.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to