Open donasiv opened 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.
@donasiv Could you use inventory
command and get list of active servers only?
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.
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.