pressly / sup

Super simple deployment tool - think of it like 'make' for a network of servers
https://pressly.github.io/sup
MIT License
2.48k stars 176 forks source link

Ignore unreachable client error #152

Open donasiv opened 5 years ago

donasiv commented 5 years ago

When some hosts from a group are unreachable, sup actually exits on the first SSH error. I propose the option flag "ignore-error" that just logs (instead return) when an host is not reachable.

donasiv commented 5 years ago

In my case, I don't want (and cannot) modify the Supfile and/or CLI calls on the fly. At the moment, I cannot use sup to perform automatic admin operation on a pool of servers, since it fails each time one host goes down. Classic ssh errors: no route to host, connection refused, connection timeout. That's why I suggest a flag to bypass and log connection issues and run commands on the up and running hosts.

VojtechVitek commented 5 years ago

@donasiv Could you use inventory command and get list of active servers only?

donasiv commented 5 years ago

I thought about it. But in my case (again), the inventory list will rely on a monitoring tool running on an host administrated by sup itself. That's not secure at all.