Workflow Tool
-
@olivierlambert In vRealize Orchestrator we use a bunch of custom workflows that run while deploying/undeploying VMs, e.g. to register/unregister a VM in Redhat Satellite or to create unique aliases that we add to a host record in Infoblox.
-
Hmm it's still vague for me, I'd like to get a concrete/developed example please
-
@whof Are you referring to this https://www.vmware.com/products/aria-automation-orchestrator.html?
So your asking about automation of Xen Orchestra and XCP-ng then?
Olivierlambert is asking for example(s) of how you use Aria Automation from VMware in your VMware ESXi and VMware vCenter infrastructure. So he can gauge what your looking for so can recommend and/or develop something to full fill the requirement.
-
@olivierlambert I'm not sure what else to tell you in particular. I just can tell you from VMware side what we do.
When triggern a VM deployment in vRealize Automation there are various event types, like: Pre Deployment, Pre Provisioning, Pre Power On, Post Power On, Post Provisioning, Post Deployment and so on.
Each event can tigger workflows in vRealize Orchestrator and passes some basic deployment information to the workflow. For example in Pre Power On we let a workflow trigger that registers the vm in RedHat Satellite.
RedHat Satellite is connected to vRealize Orchestrator as an REST Host with its REST Operations. The REST Operations can be used in the workflow.
Is it possible to do something like this with your tools? Are these enough informations? -
@john-c Yes I refer to this product.
Exactly, I'd like to know if there is something similar included in your tools or if there is a need of a third-party tool. -
@olivierlambert Would any expansion be needed to the Ansible feature in Xen Orchestra and the Ansible Community Xen Orchestra plugins, to meet whof's requirements?
-
-
@Tristis-Oris said in Workflow Tool:
@john-c https://xen-orchestra.com/blog/virtops3-ansible-with-xen-orchestra/
But is there any way to invoke scripts via that plugin from Ansible? The reason being the work flows are text based files in json or yaml format which contain options and parameters for commands and/or actions to be executed. But are not directly scripts, they are like a mix of configuration file and scripts.
-
You should maybe take a look at Packer + Terraform (both can be also used in combination with Ansible). Still, there's a REST API in XO that allows you to do many things. I'll be happy to add some stuff in XO too, but we need a first target that is doable
-
@john-c dunno about how that script should work, but you can execute anything with
ansible.builtin.shell