jbowdre / site-comments

0 stars 0 forks source link

vRA8 Custom Provisioning: Part One - Virtually Potato #7

Closed utterances-bot closed 11 months ago

utterances-bot commented 3 years ago

vRA8 Custom Provisioning: Part One - Virtually Potato

I recently shared some details about my little self-contained VMware homelab as well as how I integrated {php}IPAM into vRealize Automation 8 for assigning IPs to deployed VMs. For my next trick, I’ll be crafting a flexible Cloud Template and accompanying vRealize Orchestrator workflow that will help to deploy and configure virtual machines based on a vRA user’s input. Buckle up, this is going to be A Ride.

https://virtuallypotato.com/vra8-custom-provisioning-part-one

jbowdre commented 3 years ago

Dennis Posted June 12, 2021 on Hashnode

Fantastic series you are writing - a big THANK YOU for putting this all together and also focusing on Windows. This is a big problem I see where most of the blogs are all about Linux while most Enterprises need to automate Windows Server in a big way.

I have been also trying to bend vRA 8.x to my will and have something I hope you will find useful:

Using an array in the input form to select an OS can also be used to bind the Customisation spec to the machine resource (I suppose you are usinging cust spec and not cloud(base)-init?).

Here's a snippet which I use:

inputs:
  operatingSystem:
    type: string
    # Set the values below as 'image name,customisation spec'
    oneOf:
      - title: Microsoft Windows Server 2019
        const: 'windows-server-2019,windows-spec-noad'
      - title: CentOS Server 7.9
        const: 'centos-79,linux-spec'
      - title: CentOS Server 8.3
        const: 'centos-83,linux-spec'
resources:
  Cloud_vSphere_Machine_1:
    type: Cloud.vSphere.Machine
    properties:
        image: '${split(input.operatingSystem,",")[0]}'
        customizationSpec: '${split(input.operatingSystem,",")[1]}'
jbowdre commented 3 years ago

John Bowdre Posted June 13, 2021 on Hashnode

Oh, that's clever! I hadn't thought about doing that. I'll definitely be looking for ways I can use that to clean up my templates a bit though.

Thanks for the tip!