-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invoke-BoltCommand fails when passing multiple servers to -Targets #2739
Comments
Ah, that's a duplicate of this issue: #1478 Re-installing (through whatever method you originally installed it) should do the trick, and to be extra sure you can remove |
Hi Lucy, I installed bolt using the Windows MSI. I had a previous bolt installed via MSI (2.7 or something? not sure!). I'll go ahead and uninstall => clean |
@rogfut Those deprecation warnings are from the gssapi gem, which is one of Bolt's dependencies. We have a PR up to fix it, which you can track here: zenchild/gssapi#35 . |
@lucywyman reinstall seemed to have done the trick, feel free to close if this is a duplicate Hi @beechtom if you are referring to the deleted comment I forgot to set the -Transport to winrm 🤦♂️ Thanks for the link to the PR I've subscribed to it |
Describe the Bug
When running an Invoke-BoltCommand and passing in a server list text file that is UTF8 encoded with .txt extension, the command throws 800+ line Traceback
Invoke-BoltCommand -Command "write-host 'hi'" -Targets '@servers.txt' -Transport winrm -Ssl:$false -User roger@example.com -PasswordPrompt
This also happens when I pass in a comma delimited server list as a string:
Invoke-BoltCommand -Command "write-host 'hi'" -Targets 'server01.example.com,server02.example.com' -Transport winrm -Ssl:$false -User roger@example.com -PasswordPrompt
Expected Behavior
The bolt command should be successful and output the following:
When I run the command and pass a single server to -Targets, the command is successful.
Invoke-BoltCommand -Command "write-host 'hi'" -Targets 'server01.example.com' -Transport winrm -Ssl:$false -User roger@example.com -PasswordPrompt
Steps to Reproduce
Invoke-BoltCommand -Command "write-host 'hi'" -Targets '@servers.txt' -Transport winrm -Ssl:$false -User roger@example.com -PasswordPrompt
where @'servers.txt' has 12+ servers, is in my cwd, is UTF8 encoded with CRLF end of line sequence
Format is like:
Environment
Major Minor Build Revision
5 1 17763 1490
Additional Context
Stdout from the command is attached
puppet_error_log.txt
The text was updated successfully, but these errors were encountered: