Ask Your Question
0

Error With running Powershell script From Puppet

asked 2016-07-17 11:56:10 -0500

updated 2016-07-17 12:11:15 -0500

i have a problem, i have powershell script and i need this script to work by Puppet, i have Error masseg but i don't know why?!

exec { 'test': command => 'C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe C:/test.ps1', provider => windows, }

Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class updateverlauf for agent. azubi-rack.de on node agent.azubi-rack.de Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

Maybe I must let Powershell be able to remote!!

We are happy to recieve any new idea if you have..

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-07-18 16:55:34 -0500

GlennSarti gravatar image

The error does not appear to be related to PowerShell directly. Somewhere in your node defintion is a reference t the class 'updateverlauf'. You'll need to fix that first.

Also, executing powershell from the exec resource will work, but you'd be much better off using the Powershell module from the Forge.

https://forge.puppet.com/puppetlabs/p...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-07-17 11:56:10 -0500

Seen: 35 times

Last updated: Jul 18 '16