Whilst there are definitely some uses cases where executing scripts in either Powershell or via an Exec resource is the way to go, in my opinion you should really be thinking of using the higher level resource abstractions. That way you don't need to deal with the implementation details and you are leveraging the true power of a declarative language. Otherwise it's just glorified scripting and to some extent you may as well just run Powershell natively. Using the RAL, you will also undoubtedly find that it's not too difficult to abstract away the OS specifics as well, especially if you plug in Hiera. So go on, ... start thinking in terms of resources rather than code, you know you want to ;-)
Regards Fraser. -- 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/bc729cbe-f925-4100-8720-28958f3e0c96%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.