Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.85 KB

provisioning_workflow.md

File metadata and controls

61 lines (44 loc) · 1.85 KB
page_title subcategory description
morpheus_provisioning_workflow Resource - terraform-provider-morpheus
Provides a Morpheus provisioning workflow resource.

morpheus_provisioning_workflow

Provides a Morpheus provisioning workflow resource.

Example Usage

resource "morpheus_provisioning_workflow" "tf_example_provisioning_workflow" {
  name        = "tf_example_provisioning_workflow"
  description = "Terraform provisioning workflow example"
  labels      = ["demo", "terraform"]
  platform    = "all"
  visibility  = "private"
  task {
    task_id    = 18
    task_phase = "configure"
  }
}

Schema

Required

  • name (String) The name of the provisioning workflow

Optional

  • description (String) The description of the provisioning workflow
  • labels (Set of String) The organization labels associated with the workflow (Only supported on Morpheus 5.5.3 or higher)
  • platform (String) The operating system platforms the provisioning workflow is supported on (all, linux, macos, windows)
  • task (Block List) A list of tasks associated with the provisioning workflow (see below for nested schema)
  • visibility (String) Whether the provisioning workflow is visible in sub-tenants or not

Read-Only

  • id (String) The ID of the provisioning workflow

Nested Schema for task

Required:

  • task_id (Number) The ID of the task to associate with the provisioning workflow
  • task_phase (String) The phase that the task is executed (configure, price, preProvision, provision, postProvision, start, stop, preDeploy, deploy, reconfigure, teardown, shutdown, startup)

Import

Import is supported using the following syntax:

terraform import morpheus_provisioning_workflow.tf_example_provisioning_workflow 1