def add_authorized_key(cluster: Cluster, public_key_path: Path) -> None:
    '\n    Add an authorized key to all nodes in the given cluster.\n    '
    nodes = {*cluster.masters, *cluster.agents, *cluster.public_agents}
    for node in nodes:
        node.run(args=['echo', '', '>>', '/root/.ssh/authorized_keys'], shell=True)
        node.run(args=['echo', public_key_path.read_text(), '>>', '/root/.ssh/authorized_keys'], shell=True)
Add an authorized key to all nodes in the given cluster.
def add_authorized_key(cluster: Cluster, public_key_path: Path) -> None:
    '\n    \n    '
    nodes = {*cluster.masters, *cluster.agents, *cluster.public_agents}
    for node in nodes:
        node.run(args=['echo', , '>>', '/root/.ssh/authorized_keys'], shell=True)
        node.run(args=['echo', public_key_path.read_text(), '>>', '/root/.ssh/authorized_keys'], shell=True)