Copy certificate from master to slaves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
601 B

7 years ago
7 years ago
  1. #!/usr/bin/python
  2. import argparse
  3. def connection_from_config(name):
  4. """Create a connection from a Host entry in the .ssh/config file"""
  5. pass
  6. def scp(connection, src, dst):
  7. """Function to copy files from src to dst using connection"""
  8. pass
  9. def exec_remote(connection, command):
  10. """Function to execute specified command on conection"""
  11. pass
  12. if __name__ == "__main__":
  13. parser = argparse.ArgumentParser()
  14. parser.add_argument('cert_path')
  15. parser.add_argument('key_path')
  16. parser.add_argument('-d', '--dry', action='store_true')
  17. args = parser.parse_args()