On 04/14/2015 07:49 PM, Joshua hoblitt wrote:
I desire the ability to access DSL class parameters from within a provider. Similar to the pattern that is frequently seen with DSL defined types and a controlling class within a module. AFAIK, the alternatives for sharing data are ugly. Including: forcing the user to declare facts via ENC or an external fact source, using a file resource for "local IPC" (or sysv shm...), or adding parameters to the type and using a DSL defined type as wrapper. The later is the least objectionable but feels like it should be unnecessary; the data is already in the catalog.
On second thought, type parameters aren't an option as ::instances inherently runs before there are any resource instances, besides the fact that what I'm after is data that's need to fetch all the provider instances. Ie., it is global for the type. I've since discovered #pre_run_check via pry but it also runs too late to be help with ::instances.
-Josh -- -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/552E9FF7.9090206%40cpan.org. For more options, visit https://groups.google.com/d/optout.