'Copies a remote file from this Node instance to another Node instance
without passwordless ssh between the two.
dest - path to store the data in on the node (defaults to remote_file)'

def copy_remote_file_to_nodes(self, remote_file, nodes, dest=None):

    if (not dest):
        dest = remote_file
    rf = self.ssh.remote_file(remote_file, 'r')
    contents = rf.read()
    sts = rf.stat()
    mode = stat.S_IMODE(sts.st_mode)
    uid = sts.st_uid
    gid = sts.st_gid
    rf.close()
    for node in nodes:
        if ((self.id == node.id) and (remote_file == dest)):
            log.warn(('src    and    destination    are    the    same:    %s,    skipping' % remote_file))
            continue
        nrf = node.ssh.remote_file(dest, 'w')
        nrf.write(contents)
        nrf.chown(uid, gid)
        nrf.chmod(mode)
        nrf.close()
