When you want to assign custom grains to the minion, you can use the vRA blueprint using properties of Cloud.SaltStack resource
vRealize Aria Automation
vRealize Aria Config
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)