Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement --exec @node cmd [args...]
This command might be usefull, e.g. if sshd is not responding. Examples: clusterd --exec @theinternet restart sshd.service clusterd --exec @theinternet dmesg clusterd --exec @theinternet 'grep sshd /var/log/messages|tail -100' The remote command is executed by bash, so the pipe in the last example is on the remote node stdout and stderr are delivered seperatly and might be redirected to different channels on the local side. If the remote command exits with a non-zero exit status, the local command fails with exit status 1. The slave part already existed, because we once had a remote execution command. We removed it, because it was considered to be to dangerous. The former remote execution command allowed parallel execution on all nodes, which enabled an admin to kill all systems by mistake in an instance. Now we only enable remote execution on a single node.