On Monday, March 30, 2015 at 6:14:36 AM UTC-7, jcbollinger wrote: > > > > On Saturday, March 28, 2015 at 9:37:35 AM UTC-5, Nan Liu wrote: >> >> On Friday, March 27, 2015 at 5:49:54 PM UTC-7, Shawn Sterling wrote: >> > >> >> I will avoid any module that uses ensure_resources from this point on. >>> >> >> Isn't that rather drastic, considering it's an issue with one module, and >> a problem with class containment implementation of that module? >> > > > It's only drastic if fixing third-party modules so that they don't use > ensure_resources() any more is a viable alternative for you. The > ensure_resources() function simply does not reasonably serve the module > compatibility goals that are its *raison d'**ĂȘtre*. An ordinary resource > declaration is better for that purpose, notwithstanding the fact that it > may conflict with another declaration. Furthermore, use of > ensure_resources() creates a thorny resource containment problem, whether > that's what's actually in play in Shawn's case or not. >
ensure_packages/resources is not the source resource containment problem, it's due to how that particular modules init.pp is structured and written. There are reasons to use/not use this function, but that is not one of it's problems. Thanks, Nan -- 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/771e314e-d5c2-4415-8193-9dbbebe1ae7d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.