Enhancing Cloud Templates with Allocation Helpers: A Deeper Dive
In our previous post, we explored how VMware Aria Automation leverages GCP resources using a modern approach based on Framework plugin-based. Now, let’s dive deeper into the enhancements made to the cloud template, particularly the role of Allocation Helpers in this process. We will use my previous cloud template as a starting point and explore how Allocation Helpers streamline the selection and reservation of suitable infrastructure.
Changes to Plugin-based Framework
———————————–
The Plugin-based framework itself does not include any logic to resolve constraints or select resources. This is where Allocation Helpers come into play, providing a more efficient way to choose the right resources for your needs.
Introduction to Allocation Helpers
——————————-
Allocation Helpers are new resources that assist in selecting and reserving the most appropriate infrastructure. There are several allocation helpers available, each responsible for a specific task:
1. Image Helper: Allows you to select the right image for your needs.
2. Flavor Helper: Helps choose the appropriate flavor for your resources.
3. Compute Allocation Helper: Selects the desired destination, account, and zone for compute resources.
Using Allocation Helpers in Your Template
——————————————
Let’s take a closer look at how each of these allocation helpers works.
1. Image Helper:
To use the image helper, simply drag it to the canvas and set the image property. Instead of hardcoding the image, I created an input that maps to my image mapping, giving users the flexibility to choose their preferred OS.
2. Flavor Helper:
The flavor helper operates similarly, requiring only a flavor property to be set. This input allows users to select the appropriate flavor for their resources.
3. Compute Allocation Helper:
For compute allocation, I used the constraint we all know and love to select the desired destination, account, and zone. This time, instead of hardcoding these values, I provided an input to give users the ability to select their desired destination.
Using Outputs from Allocation Helpers
—————————————–
Once you’ve computed all destinations and resource selections using allocation helpers, it’s time to use them on GCP and disk resources. Simply copy the output from the allocation and paste it into the resource input property. Every resource will require a slightly different property or value, but now you have the capability to work with allocation helpers and build the solution you need.
Conclusion
———-
In conclusion, Allocation Helpers in VMware Aria Automation provide a more efficient way to select and reserve appropriate infrastructure for your needs. By incorporating these helpers into your cloud template, you can streamline the automation process and give your users more flexibility in choosing their desired resources. With the full template at your disposal, you’re ready to start building your solution with Allocation Helpers.
Happy Automation !!!