Closed equelin closed 8 years ago
Nice. This relates pretty closely with my POSHOrigin_vSphere DSC module. OVF/OVA resources are something I've been meaning to add.
Thanks @devblackops. your project seems quiet interesting! Good work!
@RamblingCookieMonster Do you mind if I create a repo for gathering psdeploy.ps1 examples for deploying popular OVF/OVA appliances ? Or maybe you have something in mind for the other deployment types ?
Up to you! If you wanted something more generic, I'd also be up for either of the following as well:
PSDeploy\Examples\vSphereOVF\...
, PSDeploy\Examples\PlatyPS\...
Your own repo, or either of the latter work though, up to you!
Cheers!
@equelin You can find quite a few examples here https://github.com/lamw/PowerCLI-Deployment as well as from my blog on past OVF/OVAs. It would be good to get a repo that checks the version of the appliance, as some will have new/updated properties
@RamblingCookieMonster Your project, your rules ;-) I'm not really aware of github's organization but it might be a good idea as PSDeploy is gaining more attraction. I Think that a side repo for vSphereOVF might be good if you look at @lamw repository there could be a lot of example !
@lamw That's your blog post that gave me the idea to use PSDeploy for deploying OVF but I was not aware of your repository. I hope you don't mind if I borrow your idea!? Subfolders for appliance version is a really good idea !
I overcomplicated things : P I think the easiest thing for now would be for you to just create that repo.
Down the line, could move PSDeploy to the psdeploy organization. If your repo was only related to psdeploy, you could make the transfer as well if you wanted (existing things shouldn't break). Don't see any compelling reason to transfer things now though.
Very cool idea, so basically a library of recipes for certain deployments?
Cheers!
just create that repo.
Ok !
Very cool idea, so basically a library of recipes for certain deployments?
Exactly, I was thinking of simple recipes involving one appliance and perhapes more complicated ones for deploying a complete infrastructure (maybe with Pester and PSake...).
This is cool, love it!
Closing this out, thanks again @equelin!
Please find below the documentation I've written for a new deployment type
vSphereOVF
. Feel free to give any feedback ! (cc to VMware folks @lamw @alanrenouf)Deployment script can be found here.
OVF or OVA are a standard way to package virtual machines. vSphereOVF will allow you to easely deploy an OVF/OVA into a VMware vSPhere infrastructure.
Prerequisites
Before deploying you'll need to:
Connect-VIServer
Simple Example
Here is an example deployment config:
Let's explain the different parameters:
FromSource
specifies the path to the .ovf or .ova fileTo
specifies the esxi server used as a targetName
specifies the name of the virtual machineDatastore
specifies on wich datastore the VM will be stored. If not provided, the datastore with the largest free space will be selectedOvfConfiguration
specifies advanced configurations that will be used to deploy the virtual machinePowerOn
specifies if the virtual machine should be powered on after the deploymentReal Example
Here is an example to deploy a VMware vCenter Virtual Appliance (VCSA). More specific informations about the automated deployment of a VCSA can be found here