def ssh(self, command, nodes=None): """Execute command on all nodes (unless a list of Node instances is passed) in parallel.""" ssh(command=command, hosts=[ node.ip_address for node in self.nodes if not nodes or node in nodes ], ssh_key=self.ssh_key)
def ssh(self, command, nodes=None): """Execute command on all nodes (unless a list of Node instances is passed) in parallel.""" ssh(command=command, hosts=[node.ip_address for node in self.nodes if not nodes or node in nodes], ssh_key=self.ssh_key)
def ssh(self, command): """Run command over SSH on the node.""" ssh(command=command, hosts=[self.ip_address], ssh_key=self.cluster.ssh_key)
def ssh(self, command): """Run command over SSH across all nodes in the NodeGroup in parallel.""" ssh_key = self[0].cluster.ssh_key ssh(command=command, hosts=[node.ip_address for node in self.nodes], ssh_key=ssh_key)
def ssh(self, command): """Run command over SSH on the node.""" ssh(command, [self.ip_address])
def ssh(self, command): """Run command over SSH across all nodes in the NodeGroup in parallel.""" ssh(command, [node.ip_address for node in self.nodes])