I've run into a bit of a stumbling block (likely because JavaScript escapes me...) and I'm hoping someone can help me with out. Ultimately what I'm trying to do is create a WF that will accept some user input (VM names, hostnames, etc.) and deploy a vCD template, customize it, then run scripts and deploy some software on each of the VMs (some of those calls will need to include the previously input hostnames, etc.). Unfortunately I don't think my skills are quite at this level yet.
So...what I do have already is a working Ansible setup (think Chef, Puppet, etc.) to do all the software deployment. As I see it here's what I'm now trying to do:
- WF to instantiate vApp from template (template has default VM names, vApp network, etc.).
- Need to customize the VMs with new VM names (set to defaults from the WF) and hostnames (as input by the user) - I'm a bit stuck here...I know the workflows but looping through the 3 VMs in the vApp is a mystery.
- The customization will assign IPs from an IP Pool and get me network connectivity on those VMs - I need to collect the IPs, categorized them by VM name, create a valid Ansible hosts file and SCP it to my Ansible controller.
- Kick off the playbook run via an SSH command and ideally just close that out (rather than wait) and trust that Ansible will do its thing correctly.
Can anyone offer some perspective on this? Is there an easier way? I'd like to leverage the existing vRO workflows as much as possible. In addition, any advice regarding good resources for learning vRO would be appreciated. I'm already working through the vcoteam website.
Thanks!
Matt