Re:Show HN: Relay – Event-driven DevOps automation
by crazypython on Thursday June 25, 2020 @07:22PM
(#23646912)
Sadly, it doesn't seem to support SSH, so I can't use it to replace Fabric scripts.
[ Parent
| on HN ]
Re:Show HN: Relay – Event-driven DevOps automation
by impl on Thursday June 25, 2020 @08:23PM
(#23647392)
Hi,
I wrote an SSH step for you. Here's the source code:
https://github.com/relay-integrations/relay-ssh/blob/master/...
And since it isn't documented yet, here's how you would use it in a workflow:
steps:
- name: ssh
image: relaysh/ssh-step-exec
spec:
connection: !Connection {type: ssh, name: my-ssh-connection}
username: relay
port: 2222 # defaults to 22
knownHosts: |
server1.example.com ssh-rsa AAAAEXAMPLE
server2.example.com ssh-rsa AAAANOTHEREXAMPLE
# or
#strictHostKeyChecking: false
on:
- server1.example.com
- server2.example.com
input:
- whoami
- uptime
- cat /etc/passwd
Please feel free to shoot me an email (check my profile) and I'd be happy to help write a workflow for your use case with you!