CloudShell Version: 8.2 GA

Help Version: 2.0

View / Download All Help Versions

You are here: Blueprints > Creating Blueprints > Configure Blueprint Orchestration

Configure Blueprint Orchestration

This section explains how to configure the blueprint (orchestration) commands that will run on the sandbox. For resource commands, see Managing Drivers. Typical orchestration commands are setup and teardown.

In this article:

Add a blueprint driver

Note: This section explains how to add blueprint drivers to a specific blueprint. However, the blueprint driver first needs to be added to CloudShell - see Adding drivers.

Blueprint drivers designed in CloudShell Authoring automatically run setup and teardown operations in the sandbox. A single driver may be attached to a blueprint, but each driver can include custom commands in addition to the setup and teardown steps.

To add the blueprint driver:

  1. From the Blueprint menu, select Properties.
  2. From the Driver dropdown list, select the required driver. To use blueprint commands developed in Python scripts, select the Python Setup & Teardown driver, and then add the blueprint scripts, which are explained in the following section.

  3. If you're using Setup and Teardown scripts in the blueprint, define their durations:

    • In the Estimated setup duration section, use the Up/Down arrows to define the setup duration.
    • In the Estimated teardown duration section, use the Up/Down arrows to define the teardown duration.

    Note: Setting either of these values to a duration of '0' hours and minutes will disable the script's execution.

  4. To apply the changes, click Update.

    The properties page closes and the diagram workspace is displayed.

Add blueprint scripts

You can add Python scripts that contain orchestration commands. However, the blueprint scripts first need to be added to CloudShell - see Adding scripts.

Note: CloudShell provides Setup and Teardown blueprint scripts for this purpose but you can configure your own. For additional information, see Managing Scripts.

To add blueprint scripts:

  1. From the Blueprint menu, select Properties.
  2. In the Scripts area, click Add Scripts.
  3. Select the scripts you want to add and click Done.

    The scripts are listed in the Scripts area.

  4. To apply the changes, click Update.

    The properties page closes and the diagram workspace is displayed.

Use scripts to set up and tear down blueprints

You can use scripts to set up and tear down a blueprint.

Note: The Python Setup & Teardown driver is provided to automatically run Setup and Teardown scripts.

To set up and tear down a blueprint:

  1. In the Manage dashboard, upload the blueprint script (as described above). (For more details about adding and editing scripts, see Managing Scripts.)
  2. In the Edit Script dialog box for the required script, set the Script Type to be Setup or Teardown.
  3. In the blueprint's properties page, select the Python Setup & Teardown driver, which is provided with CloudShell.
  4. Click Add Scripts.
  5. Select the required Setup or Teardown script and save it to the blueprint.

Related Topics