Working with Variables
Variables in CloudMunch are a way to manoeuvre various automations/orchestration within the platform.
Variables can be created at various levels:
1. Application level variables
To create an application variable, click on the variables tab in the top nav. Click Add Variables. The screen that comes is as below:
2. Environment level variables
Most of the environment variables are created as part of the action they perform on the environment.
For example: the url for the application is obtained only after launching the set of nodes and bringing them all together as one application.
These variables are available at the environment level, when you click on the environment as below.
Note: Application variables do not automatically become available as an environment variable at the time of this writing.
3. Task level variables
Task level variables are variables that can be used within the task. Any output variable from any step will become part of the tasks variable.
You can also add task level variables a below:
Variables become a very important tool to pass context to various steps in a task so they can perform automations in the right context.
Variables can be as simple as passing a password for a user, or passing a security group created for a network configured while launching a new server.
To ensure users get a good feel of most run time variables when configuring a step, we have a variable look-up screen which show the list of variables available for a user.
To access this look-up click on the ellipsis next to a variable, a pop-up will list the variables available. Below is an example screen of the same.
Note: At the time of this writing Variables available at application level, and run time variables that could be available in a context are not displayed in this screen.