page_title | subcategory | description |
---|---|---|
maas_vm_host_machine Resource - terraform-provider-maas |
Provides a resource to manage MAAS VM host machines. |
Provides a resource to manage MAAS VM host machines.
resource "maas_vm_host_machine" "kvm" {
count = 2
vm_host = maas_vm_host.kvm.id
cores = 1
memory = 2048
storage_disks {
size_gigabytes = 15
}
}
vm_host
(String) ID or name of the VM host used to compose the new machine.
cores
(Number) The number of CPU cores (defaults to 1).domain
(String) The VM host machine domain. This is computed if it's not set.hostname
(String) The VM host machine hostname. This is computed if it's not set.memory
(Number) The VM host machine RAM memory, specified in MB (defaults to 2048).network_interfaces
(Block List) A list of network interfaces for new the VM host. This argument only works when the VM host is deployed from a registered MAAS machine. Parameters defined below. This argument is processed in attribute-as-blocks mode. (see below for nested schema)pinned_cores
(Number) List of host CPU cores to pin the VM host machine to. If this is passed, thecores
parameter is ignored.pool
(String) The VM host machine pool. This is computed if it's not set.storage_disks
(Block List) A list of storage disks for the new VM host. Parameters defined below. This argument is processed in attribute-as-blocks mode. (see below for nested schema)zone
(String) The VM host machine zone. This is computed if it's not set.
id
(String) The ID of this resource.
Required:
name
(String) The network interface name.
Optional:
fabric
(String) The fabric for the network interface.ip_address
(String) Static IP configured on the new network interface.subnet_cidr
(String) The subnet CIDR for the network interface.vlan
(String) The VLAN for the network interface.
Required:
size_gigabytes
(Number) The storage disk size, specified in GB.
Optional:
pool
(String) The VM host storage pool name.
Import is supported using the following syntax:
# VM host machines can be imported using the identifier of the MAAS machine (system ID, hostname, or FQDN). e.g.
$ terraform import maas_vm_host_machine.test machine-02