vmware-archive / webcommander

Powerful, flexible, intuitive and most importantly simple. That is what a real automation solution should be. No matter how complicated the task is, we'd like to turn it into a single click. Is that possible? Not without webcommander :)
MIT License
165 stars 47 forks source link

Workflow - how to not have to add username and pwd to each script #174

Closed bvi1998 closed 7 years ago

bvi1998 commented 7 years ago

Hi Jerry, How can I run a workflow which requires a username and password for each log into vCenter in each script? I cannot use default. Each user will have to use their own username and password. I want to be able to perform all of my steps separately, so the workflow would be perfect if there is a solution to this. Thanks, Jen

9whirls commented 7 years ago

Hi Jen,

I suggest to use workflow variables. https://github.com/vmware/webcommander/wiki/Use-workflow-variables

You add "workflow - define variable" at the top of your workflow. Such as

my_username=admin my_password=passwd

In the rest commands, you could refer to those variables as my_usernam and my_password . When you share the workflow with other users, just ask them to define these two variables with their own ones.