Assigning custom minion grains during vRA machine deployment.
search cancel

Assigning custom minion grains during vRA machine deployment.

book

Article ID: 379394

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

When you want to assign custom grains to the minion, you can use the vRA blueprint using properties of Cloud.SaltStack resource

Environment

vRealize Aria Automation 

vRealize Aria Config 

Resolution

In order to assign custom grains use the Blueprint from as below:

Cloud_SaltStack_1:
    type: Cloud.SaltStack
    properties:
      masterId: saltstack_enterprise_installer
      hosts:
        - ${resource["Cloud_VM_1".id}
      saltEnvironment: sse
      stateFiles:
        - /doe.sls
      variables: 
        user: joe
      additionalMinionParams:
        grains:
          roles:
            - webserver
            - database 

Here is the documentation with examples of  Blueprint templates with Saltstack:

Add the SaltStack Config resource to the cloud template (vmware.com)