Skip to content

Commit

Permalink
Added CPU model to template docs (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarcia18 authored Oct 16, 2024
1 parent 2cb12d6 commit dc6259b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion website/docs/r/template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ resource "opennebula_template" "example" {
boot = "disk0"
}
cpumodel {
model = "host-passthrough"
}
disk {
image_id = opennebula_image.example.id
size = 10000
Expand Down Expand Up @@ -92,6 +96,7 @@ The following arguments are supported:
* `memory` - (Optional) Amount of RAM assigned to the VM in MB. **Mandatory if `template_****id` is not set**.
* `features` - (Optional) See [Features parameters](#features-parameters) below for details.
* `context` - (Optional) Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include: `NETWORK = "YES"` and `SET_HOSTNAME = "$NAME"`.
* `cpumodel` - (Optional) See [CPUmodel parameters](#cpumodel-parameters) below for details.
* `graphics` - (Optional) See [Graphics parameters](#graphics-parameters) below for details.
* `os` - (Optional) See [OS parameters](#os-parameters) below for details.
* `disk` - (Optional) Can be specified multiple times to attach several disks. See [Disks parameters](#disks-parameters) below for details.
Expand Down Expand Up @@ -137,6 +142,12 @@ The following arguments are supported:
* `virtio_scsi_queues` - (Optional) Numer of vCPU queues for the virtio-scsi controller.
* `iothreads` - (Optional) umber of iothreads for virtio disks. By default threads will be assign to disk by round robin algorithm. Disk thread id can be forced by disk IOTHREAD attribute.

### CPUModel parameters

`cpumodel` supports the following argument:

* `model` - (Required) CPU model to be used on the virtual machine.

### Disk parameters

`disk` supports the following arguments
Expand Down Expand Up @@ -204,7 +215,7 @@ The following attribute are exported:
* `tags_all` - Result of the applied `default_tags` and then resource `tags`.
* `default_tags` - Default tags defined in the provider configuration.

## Import
## Import

`opennebula_template` can be imported using its ID:

Expand Down

0 comments on commit dc6259b

Please sign in to comment.