def parse_args():
args = argparse.ArgumentParser("Setup ceph client to remote host")
args.add_argument('node', help="Name or IP address of node to install to")
args.add_argument('-C', '--ceph', help="Name of IP address of ceph admin node")
args.add_argument('-u', '--user', default='root', help="Username")
args.add_argument('-p', '--password', help="Password")
args.add_argument('-d', '--deploy-dir', default='/var/opt/deploy',
help="Directory to put deploy script to")
args.add_argument('-D', '--deploy-script', default='ceph_install.sh',
help="Deploy script")
args.add_argument('-w', '--app-dir', default='/var/opt/kuberdock',
help="Directory of web-application")
args.add_argument('-c', '--conf-dir', default='/etc/ceph',
help="Directory of ceph-configs")
args.add_argument('-T', '--temp-dir', default=TMPDIR, help="Temp directory")
return args.parse_args()
评论列表
文章目录