a
This commit is contained in:
parent
ac3c1fbb80
commit
285a8b5a0e
3 changed files with 18 additions and 137 deletions
16
app/ceph.py
Normal file
16
app/ceph.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import click
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
@click.group()
|
||||
def ceph():
|
||||
pass
|
||||
|
||||
|
||||
@ceph.command("setup")
|
||||
@click.option("--ceph_url", required=True)
|
||||
@click.option("--ssh_username", required=True)
|
||||
def setup(ceph_url, ssh_username):
|
||||
os.makedirs("/etc/ceph")
|
||||
command = f"sftp -b ./ceph_batch_cmd {ssh_username}@{ceph_url}:/etc/ceph"
|
||||
subprocess.check_output(command.split())
|
||||
Loading…
Add table
Add a link
Reference in a new issue