| page_title | rancher2_machine_config_v2 Resource |
|---|
Provides a Rancher v2 Machine config v2 resource. This can be used to create Machine Config v2 for Rancher v2 and retrieve their information. This resource is available from Rancher v2.6.0 and above.
The supported cloud providers includes amazonec2, azure, digitalocean, harvester, linode, nutanix, openstack, and vsphere.
Starting with Rancher v2.12.0 and above, google is also offered as a supported cloud provider.
# Create amazonec2 machine config v2
resource "rancher2_machine_config_v2" "foo" {
generate_name = "test-foo"
amazonec2_config {
ami = "<AMI_ID>"
region = "<REGION>"
security_group = [<AWS_SG>]
subnet_id = "<SUBNET_ID>"
vpc_id = "<VPC_ID>"
zone = "<ZONE>"
}
}# Get imported harvester cluster info
data "rancher2_cluster_v2" "foo-harvester" {
name = "foo-harvester"
}
# Create a new Cloud Credential for an imported Harvester cluster
resource "rancher2_cloud_credential" "foo-harvester" {
name = "foo-harvester"
harvester_credential_config {
cluster_id = data.rancher2_cluster_v2.foo-harvester.cluster_v1_id
cluster_type = "imported"
kubeconfig_content = data.rancher2_cluster_v2.foo-harvester.kube_config
}
}
# Create a new rancher2 machine config v2 using harvester node_driver
resource "rancher2_machine_config_v2" "foo-harvester-v2" {
generate_name = "foo-harvester-v2"
harvester_config {
vm_namespace = "default"
cpu_count = "2"
memory_size = "4"
disk_info = <<EOF
{
"disks": [{
"imageName": "harvester-public/image-57hzg",
"size": 40,
"bootOrder": 1
}]
}
EOF
network_info = <<EOF
{
"interfaces": [{
"networkName": "harvester-public/vlan1"
}]
}
EOF
ssh_user = "ubuntu"
user_data = <<EOF
package_update: true
packages:
- qemu-guest-agent
- iptables
runcmd:
- - systemctl
- enable
- '--now'
- qemu-guest-agent.service
EOF
}
}The following arguments are supported:
generate_name- (Required/ForceNew) Cluster V2 generate name. The pattern to generate machine config name. e.g generate_name="prod-pool1" will generate "nc-prod-pool1-?????" name computed atnameattribute (string)fleet_namespace- (Optional/ForceNew) Cluster V2 fleet namespaceamazonec2_config- (Optional) AWS config for the Machine Config V2. Conflicts withazure_config,digitalocean_config,harvester_config,linode_config,nutanix_config,openstack_config,google_configandvsphere_config(list maxitems:1)azure_config- (Optional) Azure config for the Machine Config V2. Conflicts withamazonec2_config,digitalocean_config,harvester_config,linode_config,nutanix_config,openstack_config,google_configandvsphere_config(list maxitems:1)digitalocean_config- (Optional) Digitalocean config for the Machine Config V2. Conflicts withamazonec2_config,azure_config,harvester_config,linode_config,nutanix_config,openstack_config,google_configandvsphere_config(list maxitems:1)harvester_config- (Optional) Harvester config for the Machine Config V2. Conflicts withamazonec2_config,azure_config,digitalocean_config,linode_config,nutanix_config,openstack_config,google_configandvsphere_config(list maxitems:1)linode_config- (Optional) Linode config for the Machine Config V2. Conflicts withamazonec2_config,azure_config,digitalocean_config,harvester_config,nutanix_config,openstack_config,google_configandvsphere_config(list maxitems:1)nutanix_config- (Optional) Nutanix config for the Machine Config V2. Conflicts withamazonec2_config,azure_config,digitalocean_config,harvester_config,linode_config,openstack_config,google_configandvsphere_config(list maxitems:1)openstack_config- (Optional) Openstack config for the Machine Config V2. Conflicts withamazonec2_config,azure_config,digitalocean_config,harvester_config,linode_config,nutanix_config,google_configandvsphere_config(list maxitems:1)vsphere_config- (Optional) vSphere config for the Machine Config V2. Conflicts withamazonec2_config,azure_config,digitalocean_config,harvester_config,linode_config,nutanix_config,google_configandopenstack_config(list maxitems:1)google_config- (Optional) Google config for the Machine Config V2. Conflicts withamazonec2_config,azure_config,digitalocean_config,harvester_config,linode_config,nutanix_config,openstack_configandvsphere_config(list maxitems:1)annotations- (Optional) Annotations for Machine Config V2 object (map)labels- (Optional/Computed) Labels for Machine Config V2 object (map)
Note: labels and node_taints will be applied to nodes deployed using the Machine Config V2
The following attributes are exported:
id- (Computed) The ID of the resource (string)kind- (Computed) The machine config kind (string)name- (Computed) The machine config name (string)resource_version- (Computed) The machine config k8s resource version (string)
ami- (Required) AWS machine image (string)region- (Required) AWS region. (string)security_group- (Required) AWS VPC security group. (list)subnet_id- (Required) AWS VPC subnet id (string)vpc_id- (Required) AWS VPC id. (string)zone- (Required) AWS zone for instance (i.e. a,b,c,d,e) (string)block_duration_minutes- (Optional) AWS spot instance duration in minutes (60, 120, 180, 240, 300, or 360). Default0(string)device_name- (Optional) AWS root device name. Default/dev/sda1(string)encrypt_ebs_volume- (Optional) Encrypt EBS volume. Defaultfalse(bool)endpoint- (Optional) Optional endpoint URL (hostname only or fully qualified URI) (string)http_endpoint- (Optional) Enables or disables the HTTP metadata endpoint on your instances (string)http_tokens- (Optional) The state of token usage for your instance metadata requests (string)iam_instance_profile- (Optional) AWS IAM Instance Profile (string)insecure_transport- (Optional) Disable SSL when sending requests (bool)instance_type- (Optional) AWS instance type. Defaultt3a.medium(string)kms_key- (Optional) Custom KMS key ID using the AWS Managed CMK (string)monitoring- (Optional) Set this flag to enable CloudWatch monitoring. Deafultfalse(bool)open_port- (Optional) Make the specified port number accessible from the Internet. (list)private_address_only- (Optional) Only use a private IP address. Defaultfalse(bool)request_spot_instance- (Optional) Set this flag to request spot instance. Defaultfalse(bool)retries- (Optional) Set retry count for recoverable failures (use -1 to disable). Default5(string)root_size- (Optional) AWS root disk size (in GB). Default16(string)security_group_readonly- (Optional) Skip adding default rules to security groups (bool)session_token- (Optional/Sensitive) AWS Session Token (string)spot_price- (Optional) AWS spot instance bid price (in dollar). Default0.50(string)ssh_key_contents- (Optional/Sensitive) SSH Key for Instance (string)ssh_user- (Optional) Set the name of the ssh user (string)tags- (Optional) AWS Tags (e.g. key1,value1,key2,value2) (string)use_ebs_optimized_instance- (Optional) Create an EBS optimized instance. Defaultfalse(bool)use_private_address- (Optional) Force the usage of private IP address. Defaultfalse(bool)userdata- (Optional) Path to file with cloud-init user data (string)volume_type- (Optional) Amazon EBS volume type. Defaultgp2(string)http_protocol_ipv6- (Optional) Enables or disables the IPv6 endpoint for the instance metadata service. Options: enabled, disabled (string)ipv6_address_count- (Optional) The number of IPv6 addresses to assign to the network interface. It must be greater than zero whenipv6_address_onlyis true (string)ipv6_address_only- (Optional) Indicates whether the instance has only IPv6 address. Useful when the VPC or subnet is configured as IPv6-only (bool)enable_primary_ipv6- (Optional) Indicates whether the instance’s first assigned IPv6 address is set as the primary IPv6 address (bool)
client_id- (Optional/Sensitive) Azure Service Principal Account ID. Mandatory on Rancher v2.0.x and v2.1.x. Userancher2_cloud_credentialfrom Rancher v2.2.x (string)client_secret- (Optional/Sensitive) Azure Service Principal Account password. Mandatory on Rancher v2.0.x and v2.1.x. Userancher2_cloud_credentialfrom Rancher v2.2.x (string)subscription_id- (Optional/Sensitive) Azure Subscription ID. Mandatory on Rancher v2.0.x and v2.1.x. Userancher2_cloud_credentialfrom Rancher v2.2.x (string)availability_set- (Optional) Azure Availability Set to place the virtual machine into. Defaultdocker-machine(string)custom_data- (Optional) Path to file with custom-data (string)disk_size- (Optional) Disk size if using managed disk. For Rancher v2.3.x and above. Default30(string)dns- (Optional) A unique DNS label for the public IP adddress (string)docker_port- (Optional) Port number for Docker engine. Default2376(string)environment- (Optional) Azure environment (e.g. AzurePublicCloud, AzureChinaCloud). DefaultAzurePublicCloud(string)fault_domain_count- (Optional) Fault domain count to use for availability set. Default3(string)image- (Optional) Azure virtual machine OS image. Defaultcanonical:UbuntuServer:18.04-LTS:latest(string)location- (Optional) Azure region to create the virtual machine. Defaultwestus(string)managed_disks- (Optional) Configures VM and availability set for managed disks. For Rancher v2.3.x and above. Defaultfalse(bool)no_public_ip- (Optional) Do not create a public IP address for the machine. Defaultfalse(bool)nsg- (Optional) Azure Network Security Group to assign this node to (accepts either a name or resource ID, default is to create a new NSG for each machine). Defaultdocker-machine-nsg(string)open_port- (Optional) Make the specified port number accessible from the Internet. (list)private_address_only- (Optional) Only use a private IP address. Defaultfalse(bool)private_ip_address- (Optional) Specify a static private IP address for the machine. (string)resource_group- (Optional) Azure Resource Group name (will be created if missing). Defaultdocker-machine(string)size- (Optional) Size for Azure Virtual Machine. DefaultStandard_A2(string)ssh_user- (Optional) Username for SSH login (string)static_public_ip- (Optional) Assign a static public IP address to the machine. Defaultfalse(bool)storage_type- (Optional) Type of Storage Account to host the OS Disk for the machine. DefaultStandard_LRS(string)subnet- (Optional) Azure Subnet Name to be used within the Virtual Network. Defaultdocker-machine(string)subnet_prefix- (Optional) Private CIDR block to be used for the new subnet, should comply RFC 1918. Default192.168.0.0/16(string)subscription_id- (Optional) Azure Subscription ID (string)tenant_id- (Optional) Azure Tenant ID (string)update_domain_count- (Optional) Update domain count to use for availability set. Default5(string)use_private_ip- (Optional) Use private IP address of the machine to connect. Defaultfalse(bool)vnet- (Optional) Azure Virtual Network name to connect the virtual machine (in [resourcegroup:]name format). Defaultdocker-machine-vnet(string)
access_token- (Optional/Sensitive) Digital Ocean access token. Mandatory on Rancher v2.0.x and v2.1.x. Userancher2_cloud_credentialfrom Rancher v2.2.x (string)backups- (Optional) Enable backups for droplet. Defaultfalse(bool)image- (Optional) Digital Ocean Image. Defaultubuntu-22-04-x64(string)ipv6- (Optional) Enable ipv6 for droplet. Defaultfalse(bool)monitoring- (Optional) Enable monitoring for droplet. Defaultfalse(bool)private_networking- (Optional) Enable private networking for droplet. Defaultfalse(bool)region- (Optional) Digital Ocean region. Defaultnyc3(string)size- (Optional) Digital Ocean size. Defaults-1vcpu-1gb(string)ssh_key_contents- (Optional/Sensitive) SSH private key contents (string)ssh_key_fingerprint- (Optional/Sensitive) SSH key fingerprint (string)ssh_port- (Optional) SSH port. Default22(string)ssh_user- (Optional) SSH username. Defaultroot(string)tags- (Optional) Comma-separated list of tags to apply to the Droplet (string)userdata- (Optional) Path to file with cloud-init user-data (string)
vm_namespace- (Required) Virtual machine namespace e.g.default(string)cpu_count- (Optional) CPU count, Default2(string)memory_size- (Optional) Memory size (in GiB), Default4(string)disk_size- (Deprecated) Usedisk_infoinsteaddisk_bus- (Deprecated) Usedisk_infoinsteadimage_name- (Deprecated) Usedisk_infoinsteaddisk_info- (Required) A JSON string specifying info for the disks e.g.{\"disks\":[{\"imageName\":\"harvester-public/image-57hzg\",\"bootOrder\":1,\"size\":40},{\"storageClassName\":\"node-driver-test\",\"bootOrder\":2,\"size\":1}]}(string)ssh_user- (Required) SSH username e.g.ubuntu(string)ssh_password- (Optional/Sensitive) SSH password (string)network_name- (Deprecated) Usenetwork_infoinsteadnetwork_model- (Deprecated) Usenetwork_infoinsteadnetwork_info- (Required) A JSON string specifying info for the networks e.g.{\"interfaces\":[{\"networkName\":\"harvester-public/vlan1\"},{\"networkName\":\"harvester-public/vlan2\"}]}(string)user_data- (Optional) UserData content of cloud-init, base64 is supported. If the image does not contain the qemu-guest-agent package, you must install and start qemu-guest-agent using userdata (string)network_data- (Optional) NetworkData content of cloud-init, base64 is supported (string)vm_affinity- (Optional) Virtual machine affinity, only base64 format is supported. For Rancher v2.6.7 and above (string)
authorized_users- (Optional) Linode user accounts (seperated by commas) whose Linode SSH keys will be permitted root access to the created node. (string)create_private_ip- (Optional) Create private IP for the instance. Defaultfalse(bool)use_interfaces- (Optional) Enable Linode interface/VPC networking (new networking stack). Conflicts withcreate_private_ip. Defaultfalse(bool)vpc_subnet_id- (Required withuse_interfaces) VPC subnet ID to attach when interface networking is enabled. (string)vpc_private_ip- (Optional) IPv4 address to request on the VPC interface when using interface networking. (string)public_interface_firewall_id- (Optional) Firewall ID to attach to the public interface when using interface networking. (string)vpc_interface_firewall_id- (Optional) Firewall ID to attach to the VPC interface when using interface networking. (string)docker_port- (Optional) Docker Port. Default2376(string)image- (Optional) Specifies the Linode Instance image which determines the OS distribution and base files. Defaultlinode/ubuntu18.04(string)instance_type- (Optional) Specifies the Linode Instance type which determines CPU, memory, disk size, etc. Defaultg6-standard-4(string)label- (Optional) Linode Instance Label. (string)region- (Optional) Specifies the region (location) of the Linode instance. Defaultus-east(string)root_pass- (Optional/Sensitive) Root Password (string)ssh_port- (Optional) SSH port. Default22(string)ssh_user- (Optional) SSH username. Defaultroot(string)stackscript- (Optional) Specifies the Linode StackScript to use to create the instance. (string)stackscript_data- (Optional) A JSON string specifying data for the selected StackScript. (string)user_data- (Optional) Cloud-init user data for the Linode Metadata service; supply plain text. (string)swap_size- (Optional) Linode Instance Swap Size (MB). Default512(string)tags- (Optional) A comma separated list of tags to apply to the the Linode resource (string)token- (Optional/Sensitive) Linode API token. Mandatory on Rancher v2.0.x and v2.1.x. Userancher2_cloud_credentialfrom Rancher v2.2.x (string)ua_prefix- (Optional) Prefix the User-Agent in Linode API calls with some 'product/version' (string)
auth_url- (Required) OpenStack authentication URL (string)availability_zone- (Required) OpenStack availability zone (string)region- (Required) OpenStack region name (string)username- (Required++) OpenStack username (string)active_timeout- (Optional) OpenStack active timeout Default200(string)cacert- (Optional) CA certificate bundle to verify against (string)config_drive- (Optional) Enables the OpenStack config drive for the instance. Defaultfalse(bool)domain_id- (Required++) OpenStack domain ID. Identity v3 only. Conflicts withdomain_name(string)domain_name- (Required++) OpenStack domain name. Identity v3 only. Conflicts withdomain_id(string)endpoint_type- (Optional) OpenStack endpoint type. adminURL, internalURL or publicURL (string)flavor_id- (Required+) OpenStack flavor id to use for the instance. Conflicts withflavor_name(string)flavor_name- (Required+) OpenStack flavor name to use for the instance. Conflicts withflavor_id(string)floating_ip_pool- (Optional) OpenStack floating IP pool to get an IP from to assign to the instance (string)image_id- (Required+) OpenStack image id to use for the instance. Conflicts withimage_name(string)image_name- (Required+) OpenStack image name to use for the instance. Conflicts withimage_id(string)insecure- (Optional) Disable TLS credential checking. Defaultfalse(bool)ip_version- (Optional) OpenStack version of IP address assigned for the machine Default4(string)keypair_name- (Optional) OpenStack keypair to use to SSH to the instance (string)net_id- (Required+) OpenStack network id the machine will be connected on. Conflicts withnet_name(string)net_name- (Required+) OpenStack network name the machine will be connected on. Conflicts withnet_id(string)nova_network- (Optional) Use the nova networking services instead of neutron (string)password- (Optional/Sensitive) OpenStack password. Mandatory on Rancher v2.0.x and v2.1.x. Userancher2_cloud_credentialfrom Rancher v2.2.x (string)private_key_file- (Optional/Sensitive) Private key content to use for SSH (string)sec_groups- (Optional) OpenStack comma separated security groups for the machine (string)ssh_port- (Optional) OpenStack SSH port * Default22(string)ssh_user- (Optional) OpenStack SSH user * Default:root(string)tenant_id- (Required++) OpenStack tenant id. Conflicts withtenant_name(string)tenant_name- (Required++) OpenStack tenant name. Conflicts withtenant_id(string)tenant_domain_id- (Required++) OpenStack tenant domain id. Conflicts withtenant_domain_name(string)tenant_domain_name- (Required++) OpenStack tenant domain name. Conflicts withtenant_domain_id(string)user_data_file- (Optional) File containing an openstack userdata script (string)user_domain_id- (Required++) OpenStack user domain id. Conflicts withuser_domain_name(string)user_domain_name- (Required++) OpenStack user domain name. Conflicts withuser_domain_id(string)application_credential_id- (Optional) OpenStack application credential id. Conflicts withapplication_credential_name(string)application_credential_name- (Optional) OpenStack application credential name. Conflicts withapplication_credential_id(string)application_credential_secret- (Optional) OpenStack application credential secret (string)boot_from_volume- (Optional) Enable booting from volume. Default isfalse(bool)volume_size- (Optional) OpenStack volume size (GiB). Required whenboot_from_volumeistrue(string)volume_type- (Optional) OpenStack volume type. Required whenboot_from_volumeistrueand openstack cloud does not have a default volume type (string)volume_id- (Optional) OpenStack volume id of existing volume. Applicable only whenboot_from_volumeistrue(string)volume_name- (Optional) OpenStack volume name of existing volume. Applicable only whenboot_from_volumeistrue(string)volume_device_path- (Optional) OpenStack volume device path (attaching). Applicable only whenboot_from_volumeistrue. Omit for auto/dev/vdb. (string)
Note::
Required+denotes that either the _name or _id is required but you cannot use both. Note::Required++denotes that either the _name or _id is required unlessapplication_credential_idis defined. Note for OpenStack users::keypair_nameis required to be in the schema even if there are no references in rancher itself
boot2docker_url- (Optional) vSphere URL for boot2docker iso image. Defaulthttps://releases.rancher.com/os/latest/rancheros-vmware.iso(string)cfgparam- (Optional) vSphere vm configuration parameters (used for guestinfo) (list)clone_from- (Optional) If you choose creation type vm (clone vm) a name of what vm you want to clone is required (string)cloud_config- (Optional) Filepath to a cloud-config yaml file to put into the ISO user-data (string)cloudinit- (Optional) vSphere cloud-init file or url to set in the guestinfo (string)content_library- (Optional) If you choose to clone from a content library template specify the name of the library (string)cpu_count- (Optional) vSphere CPU number for docker VM. Default2(string)creation_type- (Optional) Creation type when creating a new virtual machine. Supported values: vm, template, library, legacy. Defaultlegacy(string)custom_attributes- (Optional) vSphere custom attributes, format key/value e.g.200=my custom value(List)datacenter- (Optional) vSphere datacenter for docker VM (string)datastore- (Optional) vSphere datastore for docker VM (string)datastore_cluster- (Optional) vSphere datastore cluster for virtual machine (string)disk_size- (Optional) vSphere size of disk for docker VM (in MB). Default20480(string)folder- (Optional) vSphere folder for the docker VM. This folder must already exist in the datacenter (string)graceful_shutdown_timeout(Optional) Duration in seconds before the graceful shutdown of the VM times out and the VM is destroyed. A force destroy will be performed when the value is zero (string)hostsystem- (Optional) vSphere compute resource where the docker VM will be instantiated. This can be omitted if using a cluster with DRS (string)memory_size- (Optional) vSphere size of memory for docker VM (in MB). Default2048(string)network- (Optional) vSphere network where the docker VM will be attached (list)pool- (Optional) vSphere resource pool for docker VM (string)os- (Optional) Type of virtual machine OS in vSphere. Defaultlinux(string)ssh_password- (Optional) If using a non-B2D image you can specify the ssh password. Defaulttcuser(string)ssh_port- (Optional) If using a non-B2D image you can specify the ssh port. Default22(string)ssh_user- (Optional) If using a non-B2D image you can specify the ssh user. Defaultdocker. (string)ssh_user_group- (Optional) If using a non-B2D image the uploaded keys will need chown'ed. Defaultstaff(string)tags- (Optional) vSphere tags id e.g.urn:xxx(list)vapp_ip_allocation_policy- (Optional) vSphere vApp IP allocation policy. Supported values are:dhcp,fixed,transientandfixedAllocated(string)vapp_ip_protocol- (Optional) vSphere vApp IP protocol for this deployment. Supported values are:IPv4andIPv6(string)vapp_property- (Optional) vSphere vApp properties (list)vapp_transport- (Optional) vSphere OVF environment transports to use for properties. Supported values are:isoandcom.vmware.guestInfo(string)vcenter- (Optional/Sensitive) vSphere IP/hostname for vCenter (string)vcenter_port- (Optional/Sensitive) vSphere Port for vCenter Default443(string)
address- (Optional) GCE Instance External IP (string)auth_encoded_json- (Optional/Sensitive) GCE service account auth json file path. Userancher2_cloud_credentialfrom Rancher v2.2.x. (string)disk_size- (Required) GCE Instance Disk Size (in GB) (string)disk_type- (Required) GCE Instance Disk Type (string)external_firewall_rule_prefix- (Optional) A prefix to be added to firewall rules created when exposing ports publicly. Required if exposing ports publicly via theopen_portfield. (string)internal_firewall_rule_prefix- (Optional) A prefix to be added to an internal firewall rule created to ensure virtual machines can communicate with one another. Omitting this field will result in an internal firewall rule not being created. (string)vm_labels- (Optional) A set of labels to be added to each VM, in the format of 'key1,value1,key2,value2' (string)machine_image- (Required) GCE instance image absolute URL (string)machine_type- (Required) GCE instance type (string)network- (Required) The network to provision virtual machines within (string)open_port- (Optional) A list of ports to be opened publicly (e.g.123/tcpor456/udp). Theexternal_firewall_rule_prefixmust also be set for ports to be exposed automatically. (list)preemptable- (Optional) Indicates if the virtual machine can be preempted (bool)project- (Required) The GCP project to create virtual machines within (string)scopes- (Optional) Access scopes to be set on the virtual machine (string)sub_network- (Optional) The subnetwork to provision virtual machines within (string)tags- (Optional) A set of network tags to be added to each VM, in the format of 'tag1,tag2' (string)use_existing- (Optional) Indicates if an existing VM should be used. This is not currently support in Rancher Node Drivers. (bool)use_internal_ip- (Optional) Indicates if the virtual machines should use an internal IP (bool)use_internal_ip_only- (Optional) Indicates if the virtual machines should use an internal IP only and not be assigned a public IP (bool)user_data- (Optional) GCE user-data file path (string)username- (Optional) The username to be set when logging into the virtual machines (string)zone- (Required) The region and zone to create virtual machines within (e.g. us-east1-b) (string)
endpoint- (Optional) Nutanix management endpoint IP address/FQDN. Mandatory ifrancher2_cloud_credential.nutanix_credential_configis not used (string)username- (Optional) Nutanix management username. UseX-ntnx-api-keywhen using Prism Central service accounts. Mandatory ifrancher2_cloud_credential.nutanix_credential_configis not used (string)password- (Optional/Sensitive) Nutanix management password or API key for service account mode. Mandatory ifrancher2_cloud_credential.nutanix_credential_configis not used (string)cluster- (Required) Nutanix cluster where the VM is deployed (string)vm_network- (Required) Network names or UUIDs to attach to the VM (list)vm_image- (Required) Name of the VM disk image/template to clone from (string)port- (Optional) Nutanix management endpoint port. Default9440(string)insecure- (Optional) Allow insecure SSL requests. Defaultfalse(bool)vm_mem- (Optional) Memory in MB of the VM to be created. Default2048(string)vm_cpus- (Optional) Number of VCPUs of the VM to be created. Default2(string)vm_cores- (Optional) Number of cores per VCPU of the VM to be created. Default1(string)vm_cpu_passthrough- (Optional) Enable passthrough of host CPU features to the VM. Defaultfalse(bool)vm_image_size- (Optional) Increase the size of the template image in GiB. Default0(string)vm_categories- (Optional) Categories to apply to the VM (list)storage_container- (Optional) UUID of the storage container for additional disk (string)disk_size- (Optional) Size of the additional disk in GiB. Default0(string)cloud_init- (Optional) Cloud-init configuration (string)vm_serial_port- (Optional) Attach a serial port to the VM. Defaultfalse(bool)project- (Optional) Name of the project to assign the VM (string)boot_type- (Optional) Boot type of the VM. Supported values arelegacyanduefi. Defaultlegacy(string)timeout- (Optional) Timeout for Nutanix operations in seconds. Default300(string)vm_gpu- (Optional) GPU devices to attach to the VM (list)
rancher2_machine_config_v2 provides the following
Timeouts configuration options:
create- (Default10 minutes) Used for creating machine configs.update- (Default10 minutes) Used for machine config modifications.delete- (Default10 minutes) Used for deleting machine configs.