When deploying a VM using an Aria Automation blueprint with SaltStack integration, the VM builds successfully, but the Salt Minion installation fails.
The Aria Automation UI displays an error similar to:Resource [/resources/compute/ID]:: SaltStack resource with job id [ID] failed. Error:: [Date] Minion deployment failed. | Minion deployment and/or state file run failed.
In the Salt Config Activity tab or Salt Master logs, the following traceback appears:
Exception occurred in runner deploy.minion: Traceback (most recent call last):...File "/opt/saltstack/salt/extras-3.10/sseape/runners/deploy.py", line 738, in minionraise salt.exceptions.SaltException(salt.exceptions.SaltException: Error in installing salt minion - {'Error': 'Profile ssc_EXAMPLE_profile is not defined'}
The issue is caused by a static MinionID entry being defined within the Salt provider configuration file (e.g., saltify_provider.conf). When a static ID is present, the Salt runner is unable to dynamically assign a unique minion ID based on the newly provisioned VM's hostname, leading to the "Profile not defined" exception.
To resolve this issue, remove the static Minion ID from the provider configuration to allow for dynamic ID assignment.
cd /etc/salt/cloud.providers.d/sec_saltify_provider.conf) using a text editor like vi or nano.MinionID: [Value] and delete it.Workaround: Ensure that the profiles defined in /etc/salt/cloud.profiles.d/ do not have conflicting hardcoded identifiers that would override the dynamic parameters passed by Aria Automation during the deployment task.