page_title | subcategory | description |
---|---|---|
morpheus_node_type Resource - terraform-provider-morpheus |
Provides a Morpheus node type resource |
Provides a Morpheus node type resource
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"
}
}
name
(String) The name of the node typeshort_name
(String) The short name of the node typetechnology
(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
category
(String) The node type categoryextra_options
(Map of String) VMware custom options associated with the node typefile_template_ids
(List of Number) A list of file template ids associated with the node typelabels
(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 typeservice_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
id
(String) The ID of the node type
Optional:
name
(String) The name of the service portport
(String) The port number of the serviceprotocol
(String) The load balancer protocol (HTTP, HTTPS, TCP)
Import is supported using the following syntax:
terraform import morpheus_node_type.tf_example_node_type 1