VCP-CMA 2024 Question 114
Select 2A VMware administrator is tasked with creating a cloud template in VMware Aria Automation to deploy minions and run a Salt state file. What steps must the administrator take to ensure the state file is executed on the deployed minions?
- A
Define the Salt state file in the cloud template under the 'SaltConfig' section.
- B
Attach the Salt master configuration to the cloud template during its creation.
- C
Ensure the minion's hostname is specified in the Salt state file.
- D
Create a subscription in VMware Aria Orchestrator to trigger the state file execution post-deployment.
- E
Include a 'SaltStackConfig' resource in the cloud template to define state file execution details.
Show answer and explanation
Correct answers: A, E
Explanation
To execute a Salt state file on deployed minions, the administrator must define the state file in the cloud template under the 'SaltConfig' section. Additionally, a 'SaltStackConfig' resource should be included to specify the state execution details. These steps ensure that the SaltStack configuration management process is properly integrated into the deployment workflow.
- A. Correct.
Correct: The Salt state file must be defined in the cloud template under the 'SaltConfig' section to ensure it is executed when the minion is deployed.
- B. Incorrect.
Incorrect: Salt master configuration is not directly attached to the cloud template. Instead, the Salt master communicates with the minions as part of the configuration management process.
- C. Incorrect.
Incorrect: The minion's hostname does not need to be specified directly in the state file; SaltStack manages targeting through grains, pillars, or other mechanisms.
- D. Incorrect.
Incorrect: While subscriptions in VMware Aria Orchestrator can trigger post-deployment actions, they are not required to execute Salt state files in this scenario.
- E. Correct.
Correct: The 'SaltStackConfig' resource in the cloud template is used to define Salt state file execution details, including which states should run after deployment.