VMware Aria Automation

Configure and use the OneFuse VMware Aria Automation module with Red Hat Ansible

To learn more about this OneFuse module, refer to Aria Automation.

Prerequisites

  1. Configure OneFuse Manager
  2. Review an overview on OneFuse Modules with OneFuse Ansible Module

Ansible OneFuse Module name

  • Ansible OneFuse Module name for this OneFuse Module is: vra

present

Deploy a VMware Aria Automation 8x/Cloud Cloud Template.

Sample Play

- name: OneFuse vRealize Automation - present
  hosts: localhost
  gather_facts: false
  vars:
    policy_name: <REPLACEME_with_OneFusePolicyName>
    deployment_name: <REPLACEME_with_deploymentName>
  tasks:
  - name: Deploy vRA Cloud Template
    onefuse:
     module: vra
     state: present
     policy_name: '{{ policy_name }}'
     deployment_name: '{{ deployment_name }}'
     template_properties: {}
     tracking_id: '{{ tracking_id  | default(omit) }}'
    register: output
  - name: Output Results
    debug:
      msg: '{{ output }}'
  - name: "Pass vRA Outputs to workflow"
    set_stats:
        data:
         onefuse_vra: '{{ onefuse_vra }}'
         tracking_id: '{{ tracking_id }}'

Parameter references

The following defines the function of each Aria Automation specific Task Parameters for onefuse.

Parameter Name Required? Notes
module Required OneFuse Module Name (string). Module names for OneFuse modules.
state Required present for provision, or the appropriate “update” state for the OneFuse Module.
policy_name Required OneFuse Module Policy Name (string).
template_properties Optional Additional properties that are referenced within the Policy. Python dict format.
tracking_id Optional Tracking ID (string) to link multiple OneFuse Policy Executions and resulting OneFuse Managed Objects together. If none is passed, one gets generated by OneFuse for that specific Policy Execution.

Aria Automation specific Parameters:

Parameter Name Required? Notes
deployment_name Required Name of the vRA Deployment

absent

Destroy a deployed vRA Deployment.

Sample Play

- name: OneFuse vRealize Automation - absent
  hosts: '{{ ansible_host }}'
  gather_facts: false
  tasks:
  - name: Destroy vRA Deployment
    onefuse:
      module: vra
      state: absent
      object_name: '{{ onefuse_vra.id | default(omit) }}'
    delegate_to: localhost
    register: output
  - name: Output Results
    debug:
      msg: '{{ output }}'

Parameter references

The following defines the function of the Task Parameters for onefuse.

Parameter Name Required? Notes
module Required OneFuse Module Name (string). Module names for OneFuse modules.
state Required absent for deprovision
object_name Required OneFuse Managed Object ID (string).