Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 def ssh(self, command):
     """Run command over SSH on the node."""
     ssh(command=command, hosts=[self.ip_address], ssh_key=self.cluster.ssh_key)
Example #4
0
 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)
Example #5
0
 def ssh(self, command):
     """Run command over SSH on the node."""
     ssh(command=command, hosts=[self.ip_address], ssh_key=self.cluster.ssh_key)
Example #6
0
 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)
Example #7
0
 def ssh(self, command):
     """Run command over SSH on the node."""
     ssh(command, [self.ip_address])
Example #8
0
 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])
Example #9
0
 def ssh(self, command):
     """Run command over SSH on the node."""
     ssh(command, [self.ip_address])
Example #10
0
 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])