Hi Guys, So I've been working with puppet on windows and I think my approach is all wrong. I've been using the puppetlabs/powershell module to run commands, however I'm having difficulty with exit codes. Primarily puppet expects exit codes to denote success/failure, whereas powershell is returning objects (and giving a 0 exit code regardless of result).
I'm automating the install of old bits of software, so getting meaningful answers out of the installers is pretty difficult, this means that the scripts are a bit ugly and not very idempotent. Typically I have to check a log file to find out if the install actually worked. Are there any examples out there of windows puppet automation that makes heavy use of the powershell module? Cheers, Tom -- 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/7b4f140b-05fd-4477-b8bc-62e14f54da70%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.