Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #7
0
 def ssh(self, command):
     """Run command over SSH on the node."""
     ssh(command, [self.ip_address])
Beispiel #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])
Beispiel #9
0
 def ssh(self, command):
     """Run command over SSH on the node."""
     ssh(command, [self.ip_address])
Beispiel #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])