Automation

Provisioning -> Automation

The Automation section is composed of Tasks and Workflows. Tasks can be scripts added directly, scripts and blueprints from the Library section, recipes, playbooks, salt states, puppet agent installs, or http (api) calls. These Tasks are are combined into workflows, which can be selected to run at provision time or executed on existing instances via Actions -> Run Workflow.

Tasks

Available Task Types:

  • Ansible Playbook
  • Chef Bootstrap
  • Groovy Script*
  • HTTP
  • Javascript*
  • jRuby Script*
  • Library Script: Adds an existing script from the Library section as a task
  • Library Template: Adds an existing script from the Library section as a task
  • Puppet Agent Install
  • Python Script (jython)*
  • Shell Script
  • SSH Script
  • WinRM Script
  • Restart: Executes a restart on the Instance. Morpheus will wait until the restart is complete to execute the next task in the workflow phase.

Note

  • executes locally

To Add Tasks:

  1. Select the Provisioning link in the navigation bar.
  2. Select Automation from the sub-navigation menu.
  3. Click the Add button.
  4. From the New Task Wizard input a name for the task.
  5. Select the type of task from from the type dropdown.
  6. Input the appropriate details dependent on the task type you selected from the dropdown.
  7. Save

Edit Task

  1. Select the Provisioning link in the navigation bar.
  2. Select Automation from the sub-navigation menu.
  3. Click the Edit icon on the row of the task you wish to edit.
  4. Modify information as needed.
  5. Click the Save Changes button to save.

Delete Task

  1. Select the Provisioning link in the navigation bar.
  2. Select Automation from the sub-navigation menu.
  3. Click the Delete icon on the row of the task you wish to delete.

Workflows

Add Workflow

  1. Select the Provisioning link in the navigation bar.
  2. Select Automation from the sub-navigation menu.
  3. Click the Workflows tab to show the Workflows tab panel.
  4. Click the Add button.
  5. From the New Workflow Wizard input a name for the workflow.
  6. Optionally input a description.
  7. Expand the execution phases to add tasks to, and type the name of a created task and click the task when it appears to add.
  8. If multiple tasks are added to the same execution phase, their execution order can be changed by selecting the grip icon and dragging the task to the desired execution order.
  9. For multi-tenant environments, select Public or Private visibility for the Workflow.
  10. Click the Save Changes button to save.

Workflow Execution Phases

For VM’s, Pre-Provision and Provision execute after the VM is running. Pre-Provision can be used for a blueprint so it is added before a script set at the Provision phase executes. Pre-Provision for scripts is mainly for Docker as you can execute on the host before the container is up. Post-Provision will execute after the entire provisioning process is complete.

Edit Workflow

  1. Select the Provisioning link in the navigation bar.
  2. Select Automation from the sub-navigation menu.
  3. Click the Workflows tab to show the workflows tab panel.
  4. Click the Edit icon on the row of the workflow you wish to edit.
  5. Modify information as needed.
  6. Click the Save Changes button to save.

Delete Workflow

  1. Select the Provisioning link in the navigation bar.
  2. Select Automation from the sub-navigation menu.
  3. Click the Workflows tab to show the workflows tab panel.
  4. Click the Delete icon on the row of the workflow you wish to delete.