----- Original Message ----- > From: "David Portabella" <david.portabe...@gmail.com> > To: puppet-users@googlegroups.com > Sent: Wednesday, December 4, 2013 9:35:05 PM > Subject: [Puppet Users] Re: dependency injection in puppet > > calling hiera from inside jmxtrans::connection would contradict the > argument: > "modules that have configuration should be configurable in a single way > and single place", > explained here: > http://www.devco.net/archives/2012/12/13/simple-puppet-module-structure-redux.php
It also says: "As before I will show a simple module for a common scenario. Rather than considering this module a blueprint for every module out there you should instead study its design and use it as a starting point when writing your own modules. You can build on it and adapt it but the basic approach should translate well to more complex modules." so if you feel your module has too many arguments, adjust the pattern but try to understand why it recommends what it does and try to stay within the overall goals you do not need to pass in all the arguments, your inner modules can reference like $jmxtrans::foo for example this removes a lot of the duplication if you go this route. -- 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/600648432.1620.1386193359078.JavaMail.zimbra%40devco.net. For more options, visit https://groups.google.com/groups/opt_out.