summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJun Li <lijun_1203@126.com>2017-08-24 07:32:51 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-24 07:32:51 +0000
commitc839d60298dcc73233a16a36ffc00c1bcbcee6b4 (patch)
treef637a0167e01a12a588471c28039093b7ed1404d /utils
parent1e5d0a8a7b71e964940a63175c3495402312b896 (diff)
parent7828581444d21ad792eebda90b21b2984068d19a (diff)
Merge "Add pod description file support"
Diffstat (limited to 'utils')
-rw-r--r--utils/create_pod_file.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/create_pod_file.py b/utils/create_pod_file.py
index e2c57d23f..def5ecca8 100644
--- a/utils/create_pod_file.py
+++ b/utils/create_pod_file.py
@@ -12,6 +12,8 @@ parser.add_argument("-u", "--user", help="Give username of this pod")
parser.add_argument("-k", "--key", help="Give key file of the user")
parser.add_argument("-p", "--password", help="Give password of the user")
parser.add_argument("-f", "--filepath", help="Give dest path of output file")
+parser.add_argument("-s", "--sshkey", default="/root/.ssh/id_rsa",
+ help="Give the path for ssh key")
args = parser.parse_args()
@@ -92,7 +94,7 @@ def create_file(handler, INSTALLER_TYPE):
item['password'] = 'root'
else:
for item in node_list:
- item['key_filename'] = '/root/.ssh/id_rsa'
+ item['key_filename'] = args.sshkey
data = {'nodes': node_list}
with open(args.filepath, "w") as fw:
yaml.dump(data, fw)