JaaS Project Madison: vCO Details

Project Madison Page    Main project page

September 29 2013:
Adding content from GitHub

Files hosted on GitHub HERE

Here’s an outline of the vCO Workflow.  I mentioned in the original post it’s not exactly elegant as I should be calling nested workflows so it’s more modular but I had some issues with that I didn’t have a chance to work through yet.

These projects are going to be mostly just proof of concept, so the code will be rough on the first go, deal with it…!

Screen Shot 2013-11-28 at 8.56.46 AM

Python running on the Raspberry Pi. Notice I just use CURL to do the rest call. Easy enough, but I should be using a library if doing anything more advanced.

[gist https://gist.github.com/7715465/]

Get EmployeeID (JavaScript in the scriptable task – shows SQL Server interaction)
[gist https://gist.github.com/jasper9/7715572]

Get Desktop Names  (JavaScript in the scriptable task – shows SQL Server interaction)
[gist https://gist.github.com/jasper9/7715618]

Used default actions to get VM and Host objects from the string of a name.

These actions output an array of VM/Host parameter, so I took a shortcut in not wanting to deal with that, so I just perform the powerOn on the first found object:

That’s all!

Tagged , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *