Skip to content

Latest commit

 

History

History
93 lines (71 loc) · 2.96 KB

File metadata and controls

93 lines (71 loc) · 2.96 KB
page_title subcategory description
morpheus_node_type Resource - terraform-provider-morpheus
Provides a Morpheus node type resource

morpheus_node_type

Provides a Morpheus node type resource

Example Usage

data "morpheus_virtual_image" "example_virtual_image" {
  name = "Ubuntu 20.04 Template"
}

resource "morpheus_node_type" "tf_example_node" {
  name             = "tf_example_node_type"
  short_name       = "tfexamplenodetype"
  labels           = ["demo", "nodeType", "terraform"]
  technology       = "vmware"
  version          = "2.0"
  category         = "tfexample"
  virtual_image_id = data.morpheus_virtual_image.example_virtual_image.id

  file_template_ids = [
    data.morpheus_file_template.tfexample.id,
    113
  ]

  script_template_ids = [
    data.morpheus_script_template.tfscript1.id,
    data.morpheus_script_template.tfscript2.id
  ]

  service_port {
    name     = "web"
    port     = "8080"
    protocol = "HTTP"
  }

  service_port {
    name     = "secureweb"
    port     = "8443"
    protocol = "HTTPS"
  }
}

Schema

Required

  • name (String) The name of the node type
  • short_name (String) The short name of the node type
  • technology (String) The technology of the node type (alibaba, amazon, azure, maas, esxi, fusion, google, huawei, hyperv, kvm, nutanix, opentelekom, openstack, oraclecloud, oraclevm, scvmm, upcloud, vcd.vapp, vcd, vmware, xen)
  • version (String) The version of the node type

Optional

  • category (String) The node type category
  • extra_options (Map of String) VMware custom options associated with the node type
  • file_template_ids (List of Number) A list of file template ids associated with the node type
  • labels (Set of String) The organization labels associated with the script template (Only supported on Morpheus 5.5.3 or higher)
  • log_type_code (String) Supported technology of the node type (server,amazon, azure, esxi, google, hyperv, nutanix, openstack, scvmm, vmware, xen, docker, virtualbox, vm)
  • script_template_ids (List of Number) A list of script template ids associated with the node type
  • service_port (Block List) Service ports associated with the node type (see below for nested schema)
  • stat_type_code (String) Supported technology of the node type (server,container,amazon, azure, esxi, google, hyperv, nutanix, openstack, scvmm, vmware, xen, docker, virtualbox, vm)
  • virtual_image_id (Number) The ID of the virtual image associated with the node type

Read-Only

  • id (String) The ID of the node type

Nested Schema for service_port

Optional:

  • name (String) The name of the service port
  • port (String) The port number of the service
  • protocol (String) The load balancer protocol (HTTP, HTTPS, TCP)

Import

Import is supported using the following syntax:

terraform import morpheus_node_type.tf_example_node_type 1