a
This commit is contained in:
parent
a60507a215
commit
f7b4e5444d
1 changed files with 5 additions and 1 deletions
|
@ -21,3 +21,7 @@ def setup(ceph_url, ssh_username):
|
||||||
keys = "\n".join(keys)
|
keys = "\n".join(keys)
|
||||||
with open(os.path.expanduser("~/.ssh/known_hosts"), "a") as known_hosts:
|
with open(os.path.expanduser("~/.ssh/known_hosts"), "a") as known_hosts:
|
||||||
known_hosts.write(keys)
|
known_hosts.write(keys)
|
||||||
|
|
||||||
|
os.makedirs("/etc/ceph", exist_ok=True)
|
||||||
|
command = f"sftp -b ./ceph_batch_cmd {ssh_username}@{ceph_url}:/etc/ceph"
|
||||||
|
subprocess.check_output(command.split())
|
Loading…
Reference in a new issue