Skip to content

Adding ESXPASSWORD as commandline argument. ESXPassword cannot be har… #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions samples/vsphere/vcenter/setup/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@
_testbed.config['ESX_HOST1'] = args.esxhost1
if (args.esxhost2):
_testbed.config['ESX_HOST2'] = args.esxhost2
if (args.esxpassword):
_testbed.config['ESX_PASS'] = args.esxpassword
if (args.nfsserver):
_testbed.config['NFS_HOST'] = args.nfsserver


print(_testbed.to_config_string())

# Connect to VIM API Endpoint on vCenter system
Expand Down
6 changes: 6 additions & 0 deletions samples/vsphere/vcenter/setup/setup_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def build_arg_parser():
-server, --vcenterserver
-e1, --esxhost1
-e2, --esxhost2
-epass, --esxpassword
-n, --nfsserver

"""
Expand Down Expand Up @@ -100,6 +101,11 @@ def build_arg_parser():
help='ESX HOST 2 IP to prepare the testbed to run the samples.'
'If not passed as argument, update testbed.py file')

parser.add_argument('-epass', '--esxpassword',
action='store',
help='ESX Server password'
'If not passed as argument, update testbed.py file')

parser.add_argument('-n', '--nfsserver',
action='store',
help='NFS Server IP to setup datastore for samples run.'
Expand Down