Hey fellow Puppet users,
I'm a Puppet newb, but I did look through postings in this group and in
other locations for the answer before posting this question. Please
forgive me if I'm asking a FAQ.
When I execute a Bolt 'run command' task, my connection succeeds using SSH
keys but job terminates with a status code 1 and reminds me of the proper
syntax for scp (secure copy) commands.
root@zztypuppet01:tty1@23:25:08:~/.puppetlabs # *bolt command run
'/bin/echo "hello world"' --nodes remotehost --user root --verbose*
Started on remotehost...
2018-04-01T23:25:13.182788 INFO remotehost: Command failed with exit code
1
Failed on remotehost:
The command failed with exit code 1
STDERR:
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2
Failed on 1 node: remotehost
Ran on 1 node in 0.18 seconds
root@zztypuppet01:tty1@23:25:13:~/.puppetlabs #
Logging on the remote host for SSH indicates a successful connection:
Apr 1 23:28:19 remotehost sshd[29147]: Accepted publickey for root from
10.204.40.10 port 37122 ssh2
Apr 1 23:28:19 remotehost sshd[29147]: pam_unix(sshd:session): session
opened for user root by (uid=0)
Apr 1 23:28:19 remotehost sshd[29147]: pam_unix(sshd:session): session
closed for user root
According to the documentation for Bolt
<https://puppet.com/docs/bolt/0.x/running_bolt_commands.html>, I'm
formatting the command successfully.
Am I missing something here?
Thanks
ty
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/3fac9078-7ead-47dc-90d6-96ab1b45ff4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.