On Sunday, March 30, 2014 11:24:30 PM UTC-5, Atom Powers wrote: > > Over the years I've heard a lot of people declare one > function/method/implementation of something to be "evil". I've found that, > more often than not, the person declaring it to be bad has simply been > burned by trying to use it for something the function was never intended to > be used for. (Usually an easy trap due to incomplete documentation.) > > So I wonder, are ensure_resource and create_resources really evil, or just > too easy to abuse in evil ways? > > > On Fri, Mar 28, 2014 at 9:06 AM, jcbollinger > <john.bo...@stjude.org<javascript:> > > wrote: >> >> >> Ensure_resource() is evil. Do not use it. >> > > Ensure_resource() is evil. Create_resources() is not. The post from which you excerpted my comment ( https://groups.google.com/forum/#!searchin/puppet-users/ensure_resource/puppet-users/dOCIZ8-Gfgw/VhlBbrSRpb8J) explains why ensure_resource() is evil: in short, because it looks like it does something useful, but in fact hands you a gun loaded with foot-seeking bullets. It takes *at least* as much work to use ensure_resource() safely as it does to avoid any need for it in the first place.
John -- 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/f5d5c0aa-2355-4dc8-91da-2311fc3f679a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.