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…!
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.
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: