opennebula.Template
Explore with Pulumi AI
Provides an OpenNebula template resource.
This resource allows you to manage templates on your OpenNebula clusters. When applied, a new template is created. When destroyed, this template is removed.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opennebula from "@pulumi/opennebula";
const example = new opennebula.Template("example", {
description: "VM template",
cpu: 1,
vcpu: 1,
memory: 1024,
group: "terraform",
permissions: "660",
context: {
NETWORK: "YES",
HOSTNAME: "$NAME",
START_SCRIPT: "yum upgrade",
},
graphics: {
type: "VNC",
listen: "0.0.0.0",
keymap: "fr",
},
os: {
arch: "x86_64",
boot: "disk0",
},
cpumodel: {
model: "host-passthrough",
},
disks: [{
imageId: opennebula_image.example.id,
size: 10000,
target: "vda",
driver: "qcow2",
}],
nics: [{
model: "virtio",
networkId: _var.vnetid,
securityGroups: [opennebula_security_group.example.id],
}],
vmgroup: {
vmgroupId: 42,
role: "vmgroup-role",
},
schedRequirements: "FREE_CPU > 60",
userInputs: {
BLOG_TITLE: "M|text|Blog Title",
},
tags: {
environment: "example",
},
templateSections: [{
name: "example",
elements: {
key1: "value1",
},
}],
});
import pulumi
import pulumi_opennebula as opennebula
example = opennebula.Template("example",
description="VM template",
cpu=1,
vcpu=1,
memory=1024,
group="terraform",
permissions="660",
context={
"NETWORK": "YES",
"HOSTNAME": "$NAME",
"START_SCRIPT": "yum upgrade",
},
graphics={
"type": "VNC",
"listen": "0.0.0.0",
"keymap": "fr",
},
os={
"arch": "x86_64",
"boot": "disk0",
},
cpumodel={
"model": "host-passthrough",
},
disks=[{
"image_id": opennebula_image["example"]["id"],
"size": 10000,
"target": "vda",
"driver": "qcow2",
}],
nics=[{
"model": "virtio",
"network_id": var["vnetid"],
"security_groups": [opennebula_security_group["example"]["id"]],
}],
vmgroup={
"vmgroup_id": 42,
"role": "vmgroup-role",
},
sched_requirements="FREE_CPU > 60",
user_inputs={
"BLOG_TITLE": "M|text|Blog Title",
},
tags={
"environment": "example",
},
template_sections=[{
"name": "example",
"elements": {
"key1": "value1",
},
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opennebula/opennebula"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opennebula.NewTemplate(ctx, "example", &opennebula.TemplateArgs{
Description: pulumi.String("VM template"),
Cpu: pulumi.Float64(1),
Vcpu: pulumi.Float64(1),
Memory: pulumi.Float64(1024),
Group: pulumi.String("terraform"),
Permissions: pulumi.String("660"),
Context: pulumi.StringMap{
"NETWORK": pulumi.String("YES"),
"HOSTNAME": pulumi.String("$NAME"),
"START_SCRIPT": pulumi.String("yum upgrade"),
},
Graphics: &opennebula.TemplateGraphicsArgs{
Type: pulumi.String("VNC"),
Listen: pulumi.String("0.0.0.0"),
Keymap: pulumi.String("fr"),
},
Os: &opennebula.TemplateOsArgs{
Arch: pulumi.String("x86_64"),
Boot: pulumi.String("disk0"),
},
Cpumodel: &opennebula.TemplateCpumodelArgs{
Model: pulumi.String("host-passthrough"),
},
Disks: opennebula.TemplateDiskArray{
&opennebula.TemplateDiskArgs{
ImageId: pulumi.Any(opennebula_image.Example.Id),
Size: pulumi.Float64(10000),
Target: pulumi.String("vda"),
Driver: pulumi.String("qcow2"),
},
},
Nics: opennebula.TemplateNicArray{
&opennebula.TemplateNicArgs{
Model: pulumi.String("virtio"),
NetworkId: pulumi.Any(_var.Vnetid),
SecurityGroups: pulumi.Float64Array{
opennebula_security_group.Example.Id,
},
},
},
Vmgroup: &opennebula.TemplateVmgroupArgs{
VmgroupId: pulumi.Float64(42),
Role: pulumi.String("vmgroup-role"),
},
SchedRequirements: pulumi.String("FREE_CPU > 60"),
UserInputs: pulumi.StringMap{
"BLOG_TITLE": pulumi.String("M|text|Blog Title"),
},
Tags: pulumi.StringMap{
"environment": pulumi.String("example"),
},
TemplateSections: opennebula.TemplateTemplateSectionArray{
&opennebula.TemplateTemplateSectionArgs{
Name: pulumi.String("example"),
Elements: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opennebula = Pulumi.Opennebula;
return await Deployment.RunAsync(() =>
{
var example = new Opennebula.Template("example", new()
{
Description = "VM template",
Cpu = 1,
Vcpu = 1,
Memory = 1024,
Group = "terraform",
Permissions = "660",
Context =
{
{ "NETWORK", "YES" },
{ "HOSTNAME", "$NAME" },
{ "START_SCRIPT", "yum upgrade" },
},
Graphics = new Opennebula.Inputs.TemplateGraphicsArgs
{
Type = "VNC",
Listen = "0.0.0.0",
Keymap = "fr",
},
Os = new Opennebula.Inputs.TemplateOsArgs
{
Arch = "x86_64",
Boot = "disk0",
},
Cpumodel = new Opennebula.Inputs.TemplateCpumodelArgs
{
Model = "host-passthrough",
},
Disks = new[]
{
new Opennebula.Inputs.TemplateDiskArgs
{
ImageId = opennebula_image.Example.Id,
Size = 10000,
Target = "vda",
Driver = "qcow2",
},
},
Nics = new[]
{
new Opennebula.Inputs.TemplateNicArgs
{
Model = "virtio",
NetworkId = @var.Vnetid,
SecurityGroups = new[]
{
opennebula_security_group.Example.Id,
},
},
},
Vmgroup = new Opennebula.Inputs.TemplateVmgroupArgs
{
VmgroupId = 42,
Role = "vmgroup-role",
},
SchedRequirements = "FREE_CPU > 60",
UserInputs =
{
{ "BLOG_TITLE", "M|text|Blog Title" },
},
Tags =
{
{ "environment", "example" },
},
TemplateSections = new[]
{
new Opennebula.Inputs.TemplateTemplateSectionArgs
{
Name = "example",
Elements =
{
{ "key1", "value1" },
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opennebula.Template;
import com.pulumi.opennebula.TemplateArgs;
import com.pulumi.opennebula.inputs.TemplateGraphicsArgs;
import com.pulumi.opennebula.inputs.TemplateOsArgs;
import com.pulumi.opennebula.inputs.TemplateCpumodelArgs;
import com.pulumi.opennebula.inputs.TemplateDiskArgs;
import com.pulumi.opennebula.inputs.TemplateNicArgs;
import com.pulumi.opennebula.inputs.TemplateVmgroupArgs;
import com.pulumi.opennebula.inputs.TemplateTemplateSectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Template("example", TemplateArgs.builder()
.description("VM template")
.cpu(1)
.vcpu(1)
.memory(1024)
.group("terraform")
.permissions("660")
.context(Map.ofEntries(
Map.entry("NETWORK", "YES"),
Map.entry("HOSTNAME", "$NAME"),
Map.entry("START_SCRIPT", "yum upgrade")
))
.graphics(TemplateGraphicsArgs.builder()
.type("VNC")
.listen("0.0.0.0")
.keymap("fr")
.build())
.os(TemplateOsArgs.builder()
.arch("x86_64")
.boot("disk0")
.build())
.cpumodel(TemplateCpumodelArgs.builder()
.model("host-passthrough")
.build())
.disks(TemplateDiskArgs.builder()
.imageId(opennebula_image.example().id())
.size(10000)
.target("vda")
.driver("qcow2")
.build())
.nics(TemplateNicArgs.builder()
.model("virtio")
.networkId(var_.vnetid())
.securityGroups(opennebula_security_group.example().id())
.build())
.vmgroup(TemplateVmgroupArgs.builder()
.vmgroupId(42)
.role("vmgroup-role")
.build())
.schedRequirements("FREE_CPU > 60")
.userInputs(Map.of("BLOG_TITLE", "M|text|Blog Title"))
.tags(Map.of("environment", "example"))
.templateSections(TemplateTemplateSectionArgs.builder()
.name("example")
.elements(Map.of("key1", "value1"))
.build())
.build());
}
}
resources:
example:
type: opennebula:Template
properties:
description: VM template
cpu: 1
vcpu: 1
memory: 1024
group: terraform
permissions: '660'
context:
NETWORK: YES
HOSTNAME: $NAME
START_SCRIPT: yum upgrade
graphics:
type: VNC
listen: 0.0.0.0
keymap: fr
os:
arch: x86_64
boot: disk0
cpumodel:
model: host-passthrough
disks:
- imageId: ${opennebula_image.example.id}
size: 10000
target: vda
driver: qcow2
nics:
- model: virtio
networkId: ${var.vnetid}
securityGroups:
- ${opennebula_security_group.example.id}
vmgroup:
vmgroupId: 42
role: vmgroup-role
schedRequirements: FREE_CPU > 60
userInputs:
BLOG_TITLE: M|text|Blog Title
tags:
environment: example
templateSections:
- name: example
elements:
key1: value1
Create Template Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Template(name: string, args?: TemplateArgs, opts?: CustomResourceOptions);
@overload
def Template(resource_name: str,
args: Optional[TemplateArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Template(resource_name: str,
opts: Optional[ResourceOptions] = None,
context: Optional[Mapping[str, str]] = None,
cpu: Optional[float] = None,
cpumodel: Optional[TemplateCpumodelArgs] = None,
description: Optional[str] = None,
disks: Optional[Sequence[TemplateDiskArgs]] = None,
features: Optional[Sequence[TemplateFeatureArgs]] = None,
graphics: Optional[TemplateGraphicsArgs] = None,
group: Optional[str] = None,
lock: Optional[str] = None,
memory: Optional[float] = None,
name: Optional[str] = None,
nic_aliases: Optional[Sequence[TemplateNicAliasArgs]] = None,
nics: Optional[Sequence[TemplateNicArgs]] = None,
os: Optional[TemplateOsArgs] = None,
permissions: Optional[str] = None,
raw: Optional[TemplateRawArgs] = None,
sched_ds_requirements: Optional[str] = None,
sched_requirements: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
template_id: Optional[str] = None,
template_sections: Optional[Sequence[TemplateTemplateSectionArgs]] = None,
user_inputs: Optional[Mapping[str, str]] = None,
vcpu: Optional[float] = None,
vmgroup: Optional[TemplateVmgroupArgs] = None)
func NewTemplate(ctx *Context, name string, args *TemplateArgs, opts ...ResourceOption) (*Template, error)
public Template(string name, TemplateArgs? args = null, CustomResourceOptions? opts = null)
public Template(String name, TemplateArgs args)
public Template(String name, TemplateArgs args, CustomResourceOptions options)
type: opennebula:Template
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var templateResource = new Opennebula.Template("templateResource", new()
{
Context =
{
{ "string", "string" },
},
Cpu = 0,
Cpumodel = new Opennebula.Inputs.TemplateCpumodelArgs
{
Model = "string",
},
Description = "string",
Disks = new[]
{
new Opennebula.Inputs.TemplateDiskArgs
{
Cache = "string",
DevPrefix = "string",
Discard = "string",
Driver = "string",
ImageId = 0,
Io = "string",
Size = 0,
Target = "string",
VolatileFormat = "string",
VolatileType = "string",
},
},
Features = new[]
{
new Opennebula.Inputs.TemplateFeatureArgs
{
Acpi = "string",
Apic = "string",
GuestAgent = "string",
Hyperv = "string",
Iothreads = "string",
Localtime = "string",
Pae = "string",
VirtioScsiQueues = "string",
},
},
Graphics = new Opennebula.Inputs.TemplateGraphicsArgs
{
Listen = "string",
Type = "string",
Keymap = "string",
Passwd = "string",
Port = "string",
RandomPasswd = false,
},
Group = "string",
Lock = "string",
Memory = 0,
Name = "string",
NicAliases = new[]
{
new Opennebula.Inputs.TemplateNicAliasArgs
{
Parent = "string",
Ip6Ula = "string",
Ip = "string",
Ip6 = "string",
Ip6Global = "string",
Ip6Link = "string",
Dns = "string",
Mac = "string",
Name = "string",
Network = "string",
NetworkId = 0,
Gateway = "string",
SecurityGroups = new[]
{
0,
},
},
},
Nics = new[]
{
new Opennebula.Inputs.TemplateNicArgs
{
Dns = "string",
Gateway = "string",
Ip = "string",
Ip6 = "string",
Ip6Global = "string",
Ip6Link = "string",
Ip6Ula = "string",
Mac = "string",
Method = "string",
Model = "string",
Name = "string",
Network = "string",
NetworkId = 0,
NetworkModeAuto = false,
PhysicalDevice = "string",
SchedRank = "string",
SchedRequirements = "string",
SecurityGroups = new[]
{
0,
},
VirtioQueues = "string",
},
},
Os = new Opennebula.Inputs.TemplateOsArgs
{
Arch = "string",
Boot = "string",
Bootloader = "string",
Firmware = "string",
FirmwareSecure = false,
Initrd = "string",
InitrdDs = "string",
Kernel = "string",
KernelCmd = "string",
KernelDs = "string",
Machine = "string",
Root = "string",
SdDiskBus = "string",
Uuid = "string",
},
Permissions = "string",
Raw = new Opennebula.Inputs.TemplateRawArgs
{
Data = "string",
Type = "string",
},
SchedDsRequirements = "string",
SchedRequirements = "string",
Tags =
{
{ "string", "string" },
},
TemplateId = "string",
TemplateSections = new[]
{
new Opennebula.Inputs.TemplateTemplateSectionArgs
{
Name = "string",
Elements =
{
{ "string", "string" },
},
},
},
UserInputs =
{
{ "string", "string" },
},
Vcpu = 0,
Vmgroup = new Opennebula.Inputs.TemplateVmgroupArgs
{
Role = "string",
VmgroupId = 0,
},
});
example, err := opennebula.NewTemplate(ctx, "templateResource", &opennebula.TemplateArgs{
Context: pulumi.StringMap{
"string": pulumi.String("string"),
},
Cpu: pulumi.Float64(0),
Cpumodel: &opennebula.TemplateCpumodelArgs{
Model: pulumi.String("string"),
},
Description: pulumi.String("string"),
Disks: opennebula.TemplateDiskArray{
&opennebula.TemplateDiskArgs{
Cache: pulumi.String("string"),
DevPrefix: pulumi.String("string"),
Discard: pulumi.String("string"),
Driver: pulumi.String("string"),
ImageId: pulumi.Float64(0),
Io: pulumi.String("string"),
Size: pulumi.Float64(0),
Target: pulumi.String("string"),
VolatileFormat: pulumi.String("string"),
VolatileType: pulumi.String("string"),
},
},
Features: opennebula.TemplateFeatureArray{
&opennebula.TemplateFeatureArgs{
Acpi: pulumi.String("string"),
Apic: pulumi.String("string"),
GuestAgent: pulumi.String("string"),
Hyperv: pulumi.String("string"),
Iothreads: pulumi.String("string"),
Localtime: pulumi.String("string"),
Pae: pulumi.String("string"),
VirtioScsiQueues: pulumi.String("string"),
},
},
Graphics: &opennebula.TemplateGraphicsArgs{
Listen: pulumi.String("string"),
Type: pulumi.String("string"),
Keymap: pulumi.String("string"),
Passwd: pulumi.String("string"),
Port: pulumi.String("string"),
RandomPasswd: pulumi.Bool(false),
},
Group: pulumi.String("string"),
Lock: pulumi.String("string"),
Memory: pulumi.Float64(0),
Name: pulumi.String("string"),
NicAliases: opennebula.TemplateNicAliasArray{
&opennebula.TemplateNicAliasArgs{
Parent: pulumi.String("string"),
Ip6Ula: pulumi.String("string"),
Ip: pulumi.String("string"),
Ip6: pulumi.String("string"),
Ip6Global: pulumi.String("string"),
Ip6Link: pulumi.String("string"),
Dns: pulumi.String("string"),
Mac: pulumi.String("string"),
Name: pulumi.String("string"),
Network: pulumi.String("string"),
NetworkId: pulumi.Float64(0),
Gateway: pulumi.String("string"),
SecurityGroups: pulumi.Float64Array{
pulumi.Float64(0),
},
},
},
Nics: opennebula.TemplateNicArray{
&opennebula.TemplateNicArgs{
Dns: pulumi.String("string"),
Gateway: pulumi.String("string"),
Ip: pulumi.String("string"),
Ip6: pulumi.String("string"),
Ip6Global: pulumi.String("string"),
Ip6Link: pulumi.String("string"),
Ip6Ula: pulumi.String("string"),
Mac: pulumi.String("string"),
Method: pulumi.String("string"),
Model: pulumi.String("string"),
Name: pulumi.String("string"),
Network: pulumi.String("string"),
NetworkId: pulumi.Float64(0),
NetworkModeAuto: pulumi.Bool(false),
PhysicalDevice: pulumi.String("string"),
SchedRank: pulumi.String("string"),
SchedRequirements: pulumi.String("string"),
SecurityGroups: pulumi.Float64Array{
pulumi.Float64(0),
},
VirtioQueues: pulumi.String("string"),
},
},
Os: &opennebula.TemplateOsArgs{
Arch: pulumi.String("string"),
Boot: pulumi.String("string"),
Bootloader: pulumi.String("string"),
Firmware: pulumi.String("string"),
FirmwareSecure: pulumi.Bool(false),
Initrd: pulumi.String("string"),
InitrdDs: pulumi.String("string"),
Kernel: pulumi.String("string"),
KernelCmd: pulumi.String("string"),
KernelDs: pulumi.String("string"),
Machine: pulumi.String("string"),
Root: pulumi.String("string"),
SdDiskBus: pulumi.String("string"),
Uuid: pulumi.String("string"),
},
Permissions: pulumi.String("string"),
Raw: &opennebula.TemplateRawArgs{
Data: pulumi.String("string"),
Type: pulumi.String("string"),
},
SchedDsRequirements: pulumi.String("string"),
SchedRequirements: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TemplateId: pulumi.String("string"),
TemplateSections: opennebula.TemplateTemplateSectionArray{
&opennebula.TemplateTemplateSectionArgs{
Name: pulumi.String("string"),
Elements: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
UserInputs: pulumi.StringMap{
"string": pulumi.String("string"),
},
Vcpu: pulumi.Float64(0),
Vmgroup: &opennebula.TemplateVmgroupArgs{
Role: pulumi.String("string"),
VmgroupId: pulumi.Float64(0),
},
})
var templateResource = new Template("templateResource", TemplateArgs.builder()
.context(Map.of("string", "string"))
.cpu(0.0)
.cpumodel(TemplateCpumodelArgs.builder()
.model("string")
.build())
.description("string")
.disks(TemplateDiskArgs.builder()
.cache("string")
.devPrefix("string")
.discard("string")
.driver("string")
.imageId(0.0)
.io("string")
.size(0.0)
.target("string")
.volatileFormat("string")
.volatileType("string")
.build())
.features(TemplateFeatureArgs.builder()
.acpi("string")
.apic("string")
.guestAgent("string")
.hyperv("string")
.iothreads("string")
.localtime("string")
.pae("string")
.virtioScsiQueues("string")
.build())
.graphics(TemplateGraphicsArgs.builder()
.listen("string")
.type("string")
.keymap("string")
.passwd("string")
.port("string")
.randomPasswd(false)
.build())
.group("string")
.lock("string")
.memory(0.0)
.name("string")
.nicAliases(TemplateNicAliasArgs.builder()
.parent("string")
.ip6Ula("string")
.ip("string")
.ip6("string")
.ip6Global("string")
.ip6Link("string")
.dns("string")
.mac("string")
.name("string")
.network("string")
.networkId(0.0)
.gateway("string")
.securityGroups(0.0)
.build())
.nics(TemplateNicArgs.builder()
.dns("string")
.gateway("string")
.ip("string")
.ip6("string")
.ip6Global("string")
.ip6Link("string")
.ip6Ula("string")
.mac("string")
.method("string")
.model("string")
.name("string")
.network("string")
.networkId(0.0)
.networkModeAuto(false)
.physicalDevice("string")
.schedRank("string")
.schedRequirements("string")
.securityGroups(0.0)
.virtioQueues("string")
.build())
.os(TemplateOsArgs.builder()
.arch("string")
.boot("string")
.bootloader("string")
.firmware("string")
.firmwareSecure(false)
.initrd("string")
.initrdDs("string")
.kernel("string")
.kernelCmd("string")
.kernelDs("string")
.machine("string")
.root("string")
.sdDiskBus("string")
.uuid("string")
.build())
.permissions("string")
.raw(TemplateRawArgs.builder()
.data("string")
.type("string")
.build())
.schedDsRequirements("string")
.schedRequirements("string")
.tags(Map.of("string", "string"))
.templateId("string")
.templateSections(TemplateTemplateSectionArgs.builder()
.name("string")
.elements(Map.of("string", "string"))
.build())
.userInputs(Map.of("string", "string"))
.vcpu(0.0)
.vmgroup(TemplateVmgroupArgs.builder()
.role("string")
.vmgroupId(0.0)
.build())
.build());
template_resource = opennebula.Template("templateResource",
context={
"string": "string",
},
cpu=0,
cpumodel={
"model": "string",
},
description="string",
disks=[{
"cache": "string",
"dev_prefix": "string",
"discard": "string",
"driver": "string",
"image_id": 0,
"io": "string",
"size": 0,
"target": "string",
"volatile_format": "string",
"volatile_type": "string",
}],
features=[{
"acpi": "string",
"apic": "string",
"guest_agent": "string",
"hyperv": "string",
"iothreads": "string",
"localtime": "string",
"pae": "string",
"virtio_scsi_queues": "string",
}],
graphics={
"listen": "string",
"type": "string",
"keymap": "string",
"passwd": "string",
"port": "string",
"random_passwd": False,
},
group="string",
lock="string",
memory=0,
name="string",
nic_aliases=[{
"parent": "string",
"ip6_ula": "string",
"ip": "string",
"ip6": "string",
"ip6_global": "string",
"ip6_link": "string",
"dns": "string",
"mac": "string",
"name": "string",
"network": "string",
"network_id": 0,
"gateway": "string",
"security_groups": [0],
}],
nics=[{
"dns": "string",
"gateway": "string",
"ip": "string",
"ip6": "string",
"ip6_global": "string",
"ip6_link": "string",
"ip6_ula": "string",
"mac": "string",
"method": "string",
"model": "string",
"name": "string",
"network": "string",
"network_id": 0,
"network_mode_auto": False,
"physical_device": "string",
"sched_rank": "string",
"sched_requirements": "string",
"security_groups": [0],
"virtio_queues": "string",
}],
os={
"arch": "string",
"boot": "string",
"bootloader": "string",
"firmware": "string",
"firmware_secure": False,
"initrd": "string",
"initrd_ds": "string",
"kernel": "string",
"kernel_cmd": "string",
"kernel_ds": "string",
"machine": "string",
"root": "string",
"sd_disk_bus": "string",
"uuid": "string",
},
permissions="string",
raw={
"data": "string",
"type": "string",
},
sched_ds_requirements="string",
sched_requirements="string",
tags={
"string": "string",
},
template_id="string",
template_sections=[{
"name": "string",
"elements": {
"string": "string",
},
}],
user_inputs={
"string": "string",
},
vcpu=0,
vmgroup={
"role": "string",
"vmgroup_id": 0,
})
const templateResource = new opennebula.Template("templateResource", {
context: {
string: "string",
},
cpu: 0,
cpumodel: {
model: "string",
},
description: "string",
disks: [{
cache: "string",
devPrefix: "string",
discard: "string",
driver: "string",
imageId: 0,
io: "string",
size: 0,
target: "string",
volatileFormat: "string",
volatileType: "string",
}],
features: [{
acpi: "string",
apic: "string",
guestAgent: "string",
hyperv: "string",
iothreads: "string",
localtime: "string",
pae: "string",
virtioScsiQueues: "string",
}],
graphics: {
listen: "string",
type: "string",
keymap: "string",
passwd: "string",
port: "string",
randomPasswd: false,
},
group: "string",
lock: "string",
memory: 0,
name: "string",
nicAliases: [{
parent: "string",
ip6Ula: "string",
ip: "string",
ip6: "string",
ip6Global: "string",
ip6Link: "string",
dns: "string",
mac: "string",
name: "string",
network: "string",
networkId: 0,
gateway: "string",
securityGroups: [0],
}],
nics: [{
dns: "string",
gateway: "string",
ip: "string",
ip6: "string",
ip6Global: "string",
ip6Link: "string",
ip6Ula: "string",
mac: "string",
method: "string",
model: "string",
name: "string",
network: "string",
networkId: 0,
networkModeAuto: false,
physicalDevice: "string",
schedRank: "string",
schedRequirements: "string",
securityGroups: [0],
virtioQueues: "string",
}],
os: {
arch: "string",
boot: "string",
bootloader: "string",
firmware: "string",
firmwareSecure: false,
initrd: "string",
initrdDs: "string",
kernel: "string",
kernelCmd: "string",
kernelDs: "string",
machine: "string",
root: "string",
sdDiskBus: "string",
uuid: "string",
},
permissions: "string",
raw: {
data: "string",
type: "string",
},
schedDsRequirements: "string",
schedRequirements: "string",
tags: {
string: "string",
},
templateId: "string",
templateSections: [{
name: "string",
elements: {
string: "string",
},
}],
userInputs: {
string: "string",
},
vcpu: 0,
vmgroup: {
role: "string",
vmgroupId: 0,
},
});
type: opennebula:Template
properties:
context:
string: string
cpu: 0
cpumodel:
model: string
description: string
disks:
- cache: string
devPrefix: string
discard: string
driver: string
imageId: 0
io: string
size: 0
target: string
volatileFormat: string
volatileType: string
features:
- acpi: string
apic: string
guestAgent: string
hyperv: string
iothreads: string
localtime: string
pae: string
virtioScsiQueues: string
graphics:
keymap: string
listen: string
passwd: string
port: string
randomPasswd: false
type: string
group: string
lock: string
memory: 0
name: string
nicAliases:
- dns: string
gateway: string
ip: string
ip6: string
ip6Global: string
ip6Link: string
ip6Ula: string
mac: string
name: string
network: string
networkId: 0
parent: string
securityGroups:
- 0
nics:
- dns: string
gateway: string
ip: string
ip6: string
ip6Global: string
ip6Link: string
ip6Ula: string
mac: string
method: string
model: string
name: string
network: string
networkId: 0
networkModeAuto: false
physicalDevice: string
schedRank: string
schedRequirements: string
securityGroups:
- 0
virtioQueues: string
os:
arch: string
boot: string
bootloader: string
firmware: string
firmwareSecure: false
initrd: string
initrdDs: string
kernel: string
kernelCmd: string
kernelDs: string
machine: string
root: string
sdDiskBus: string
uuid: string
permissions: string
raw:
data: string
type: string
schedDsRequirements: string
schedRequirements: string
tags:
string: string
templateId: string
templateSections:
- elements:
string: string
name: string
userInputs:
string: string
vcpu: 0
vmgroup:
role: string
vmgroupId: 0
Template Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Template resource accepts the following input properties:
- Context Dictionary<string, string>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - Cpu double
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - Cpumodel
Template
Cpumodel - See CPUmodel parameters below for details.
- Description string
- The description of the template.
- Disks
List<Template
Disk> - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- Features
List<Template
Feature> - See Features parameters below for details.
- Graphics
Template
Graphics - See Graphics parameters below for details.
- Group string
- Name of the group which owns the template. Defaults to the caller primary group.
- Lock string
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - Memory double
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - Name string
- The name of the virtual machine template.
- Nic
Aliases List<TemplateNic Alias> - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- Nics
List<Template
Nic> - Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- Os
Template
Os - See OS parameters below for details.
- Permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Template
Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- Sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- Sched
Requirements string - Scheduling requirements to deploy the resource following specific rule
- Dictionary<string, string>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Template
Id string - ID of the template.
- Template
Sections List<TemplateTemplate Section> - Allow to add a custom vector. See Template section parameters
- User
Inputs Dictionary<string, string> - Ask the user instantiating the template to define the values described.
- Vcpu double
- Number of CPU cores presented to the VM.
- Vmgroup
Template
Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- Context map[string]string
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - Cpu float64
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - Cpumodel
Template
Cpumodel Args - See CPUmodel parameters below for details.
- Description string
- The description of the template.
- Disks
[]Template
Disk Args - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- Features
[]Template
Feature Args - See Features parameters below for details.
- Graphics
Template
Graphics Args - See Graphics parameters below for details.
- Group string
- Name of the group which owns the template. Defaults to the caller primary group.
- Lock string
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - Memory float64
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - Name string
- The name of the virtual machine template.
- Nic
Aliases []TemplateNic Alias Args - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- Nics
[]Template
Nic Args - Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- Os
Template
Os Args - See OS parameters below for details.
- Permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Template
Raw Args - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- Sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- Sched
Requirements string - Scheduling requirements to deploy the resource following specific rule
- map[string]string
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Template
Id string - ID of the template.
- Template
Sections []TemplateTemplate Section Args - Allow to add a custom vector. See Template section parameters
- User
Inputs map[string]string - Ask the user instantiating the template to define the values described.
- Vcpu float64
- Number of CPU cores presented to the VM.
- Vmgroup
Template
Vmgroup Args - See VM group parameters below for details. Changing this argument triggers a new resource.
- context Map<String,String>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu Double
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - cpumodel
Template
Cpumodel - See CPUmodel parameters below for details.
- description String
- The description of the template.
- disks
List<Template
Disk> - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
List<Template
Feature> - See Features parameters below for details.
- graphics
Template
Graphics - See Graphics parameters below for details.
- group String
- Name of the group which owns the template. Defaults to the caller primary group.
- lock String
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory Double
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - name String
- The name of the virtual machine template.
- nic
Aliases List<TemplateNic Alias> - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- nics
List<Template
Nic> - Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- os
Template
Os - See OS parameters below for details.
- permissions String
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Template
Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- sched
Ds StringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements String - Scheduling requirements to deploy the resource following specific rule
- Map<String,String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template
Id String - ID of the template.
- template
Sections List<TemplateTemplate Section> - Allow to add a custom vector. See Template section parameters
- user
Inputs Map<String,String> - Ask the user instantiating the template to define the values described.
- vcpu Double
- Number of CPU cores presented to the VM.
- vmgroup
Template
Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- context {[key: string]: string}
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu number
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - cpumodel
Template
Cpumodel - See CPUmodel parameters below for details.
- description string
- The description of the template.
- disks
Template
Disk[] - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
Template
Feature[] - See Features parameters below for details.
- graphics
Template
Graphics - See Graphics parameters below for details.
- group string
- Name of the group which owns the template. Defaults to the caller primary group.
- lock string
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory number
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - name string
- The name of the virtual machine template.
- nic
Aliases TemplateNic Alias[] - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- nics
Template
Nic[] - Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- os
Template
Os - See OS parameters below for details.
- permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Template
Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements string - Scheduling requirements to deploy the resource following specific rule
- {[key: string]: string}
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template
Id string - ID of the template.
- template
Sections TemplateTemplate Section[] - Allow to add a custom vector. See Template section parameters
- user
Inputs {[key: string]: string} - Ask the user instantiating the template to define the values described.
- vcpu number
- Number of CPU cores presented to the VM.
- vmgroup
Template
Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- context Mapping[str, str]
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu float
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - cpumodel
Template
Cpumodel Args - See CPUmodel parameters below for details.
- description str
- The description of the template.
- disks
Sequence[Template
Disk Args] - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
Sequence[Template
Feature Args] - See Features parameters below for details.
- graphics
Template
Graphics Args - See Graphics parameters below for details.
- group str
- Name of the group which owns the template. Defaults to the caller primary group.
- lock str
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory float
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - name str
- The name of the virtual machine template.
- nic_
aliases Sequence[TemplateNic Alias Args] - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- nics
Sequence[Template
Nic Args] - Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- os
Template
Os Args - See OS parameters below for details.
- permissions str
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Template
Raw Args - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- sched_
ds_ strrequirements - Storage placement requirements to deploy the resource following specific rule.
- sched_
requirements str - Scheduling requirements to deploy the resource following specific rule
- Mapping[str, str]
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template_
id str - ID of the template.
- template_
sections Sequence[TemplateTemplate Section Args] - Allow to add a custom vector. See Template section parameters
- user_
inputs Mapping[str, str] - Ask the user instantiating the template to define the values described.
- vcpu float
- Number of CPU cores presented to the VM.
- vmgroup
Template
Vmgroup Args - See VM group parameters below for details. Changing this argument triggers a new resource.
- context Map<String>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu Number
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - cpumodel Property Map
- See CPUmodel parameters below for details.
- description String
- The description of the template.
- disks List<Property Map>
- Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features List<Property Map>
- See Features parameters below for details.
- graphics Property Map
- See Graphics parameters below for details.
- group String
- Name of the group which owns the template. Defaults to the caller primary group.
- lock String
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory Number
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - name String
- The name of the virtual machine template.
- nic
Aliases List<Property Map> - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- nics List<Property Map>
- Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- os Property Map
- See OS parameters below for details.
- permissions String
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw Property Map
- Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- sched
Ds StringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements String - Scheduling requirements to deploy the resource following specific rule
- Map<String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - template
Id String - ID of the template.
- template
Sections List<Property Map> - Allow to add a custom vector. See Template section parameters
- user
Inputs Map<String> - Ask the user instantiating the template to define the values described.
- vcpu Number
- Number of CPU cores presented to the VM.
- vmgroup Property Map
- See VM group parameters below for details. Changing this argument triggers a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Template resource produces the following output properties:
- Dictionary<string, string>
- Default tags defined in the provider configuration.
- Gid double
- Group ID which owns the template.
- Gname string
- Group Name which owns the template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Reg
Time double - Registration time of the template.
- Dictionary<string, string>
- Result of the applied
default_tags
and then resourcetags
. - Uid double
- User ID whom owns the template.
- Uname string
- User Name whom owns the template.
- map[string]string
- Default tags defined in the provider configuration.
- Gid float64
- Group ID which owns the template.
- Gname string
- Group Name which owns the template.
- Id string
- The provider-assigned unique ID for this managed resource.
- Reg
Time float64 - Registration time of the template.
- map[string]string
- Result of the applied
default_tags
and then resourcetags
. - Uid float64
- User ID whom owns the template.
- Uname string
- User Name whom owns the template.
- Map<String,String>
- Default tags defined in the provider configuration.
- gid Double
- Group ID which owns the template.
- gname String
- Group Name which owns the template.
- id String
- The provider-assigned unique ID for this managed resource.
- reg
Time Double - Registration time of the template.
- Map<String,String>
- Result of the applied
default_tags
and then resourcetags
. - uid Double
- User ID whom owns the template.
- uname String
- User Name whom owns the template.
- {[key: string]: string}
- Default tags defined in the provider configuration.
- gid number
- Group ID which owns the template.
- gname string
- Group Name which owns the template.
- id string
- The provider-assigned unique ID for this managed resource.
- reg
Time number - Registration time of the template.
- {[key: string]: string}
- Result of the applied
default_tags
and then resourcetags
. - uid number
- User ID whom owns the template.
- uname string
- User Name whom owns the template.
- Mapping[str, str]
- Default tags defined in the provider configuration.
- gid float
- Group ID which owns the template.
- gname str
- Group Name which owns the template.
- id str
- The provider-assigned unique ID for this managed resource.
- reg_
time float - Registration time of the template.
- Mapping[str, str]
- Result of the applied
default_tags
and then resourcetags
. - uid float
- User ID whom owns the template.
- uname str
- User Name whom owns the template.
- Map<String>
- Default tags defined in the provider configuration.
- gid Number
- Group ID which owns the template.
- gname String
- Group Name which owns the template.
- id String
- The provider-assigned unique ID for this managed resource.
- reg
Time Number - Registration time of the template.
- Map<String>
- Result of the applied
default_tags
and then resourcetags
. - uid Number
- User ID whom owns the template.
- uname String
- User Name whom owns the template.
Look up Existing Template Resource
Get an existing Template resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TemplateState, opts?: CustomResourceOptions): Template
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context: Optional[Mapping[str, str]] = None,
cpu: Optional[float] = None,
cpumodel: Optional[TemplateCpumodelArgs] = None,
default_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
disks: Optional[Sequence[TemplateDiskArgs]] = None,
features: Optional[Sequence[TemplateFeatureArgs]] = None,
gid: Optional[float] = None,
gname: Optional[str] = None,
graphics: Optional[TemplateGraphicsArgs] = None,
group: Optional[str] = None,
lock: Optional[str] = None,
memory: Optional[float] = None,
name: Optional[str] = None,
nic_aliases: Optional[Sequence[TemplateNicAliasArgs]] = None,
nics: Optional[Sequence[TemplateNicArgs]] = None,
os: Optional[TemplateOsArgs] = None,
permissions: Optional[str] = None,
raw: Optional[TemplateRawArgs] = None,
reg_time: Optional[float] = None,
sched_ds_requirements: Optional[str] = None,
sched_requirements: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
template_id: Optional[str] = None,
template_sections: Optional[Sequence[TemplateTemplateSectionArgs]] = None,
uid: Optional[float] = None,
uname: Optional[str] = None,
user_inputs: Optional[Mapping[str, str]] = None,
vcpu: Optional[float] = None,
vmgroup: Optional[TemplateVmgroupArgs] = None) -> Template
func GetTemplate(ctx *Context, name string, id IDInput, state *TemplateState, opts ...ResourceOption) (*Template, error)
public static Template Get(string name, Input<string> id, TemplateState? state, CustomResourceOptions? opts = null)
public static Template get(String name, Output<String> id, TemplateState state, CustomResourceOptions options)
resources: _: type: opennebula:Template get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Context Dictionary<string, string>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - Cpu double
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - Cpumodel
Template
Cpumodel - See CPUmodel parameters below for details.
- Dictionary<string, string>
- Default tags defined in the provider configuration.
- Description string
- The description of the template.
- Disks
List<Template
Disk> - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- Features
List<Template
Feature> - See Features parameters below for details.
- Gid double
- Group ID which owns the template.
- Gname string
- Group Name which owns the template.
- Graphics
Template
Graphics - See Graphics parameters below for details.
- Group string
- Name of the group which owns the template. Defaults to the caller primary group.
- Lock string
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - Memory double
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - Name string
- The name of the virtual machine template.
- Nic
Aliases List<TemplateNic Alias> - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- Nics
List<Template
Nic> - Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- Os
Template
Os - See OS parameters below for details.
- Permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Template
Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- Reg
Time double - Registration time of the template.
- Sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- Sched
Requirements string - Scheduling requirements to deploy the resource following specific rule
- Dictionary<string, string>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Dictionary<string, string>
- Result of the applied
default_tags
and then resourcetags
. - Template
Id string - ID of the template.
- Template
Sections List<TemplateTemplate Section> - Allow to add a custom vector. See Template section parameters
- Uid double
- User ID whom owns the template.
- Uname string
- User Name whom owns the template.
- User
Inputs Dictionary<string, string> - Ask the user instantiating the template to define the values described.
- Vcpu double
- Number of CPU cores presented to the VM.
- Vmgroup
Template
Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- Context map[string]string
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - Cpu float64
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - Cpumodel
Template
Cpumodel Args - See CPUmodel parameters below for details.
- map[string]string
- Default tags defined in the provider configuration.
- Description string
- The description of the template.
- Disks
[]Template
Disk Args - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- Features
[]Template
Feature Args - See Features parameters below for details.
- Gid float64
- Group ID which owns the template.
- Gname string
- Group Name which owns the template.
- Graphics
Template
Graphics Args - See Graphics parameters below for details.
- Group string
- Name of the group which owns the template. Defaults to the caller primary group.
- Lock string
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - Memory float64
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - Name string
- The name of the virtual machine template.
- Nic
Aliases []TemplateNic Alias Args - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- Nics
[]Template
Nic Args - Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- Os
Template
Os Args - See OS parameters below for details.
- Permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- Raw
Template
Raw Args - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- Reg
Time float64 - Registration time of the template.
- Sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- Sched
Requirements string - Scheduling requirements to deploy the resource following specific rule
- map[string]string
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - map[string]string
- Result of the applied
default_tags
and then resourcetags
. - Template
Id string - ID of the template.
- Template
Sections []TemplateTemplate Section Args - Allow to add a custom vector. See Template section parameters
- Uid float64
- User ID whom owns the template.
- Uname string
- User Name whom owns the template.
- User
Inputs map[string]string - Ask the user instantiating the template to define the values described.
- Vcpu float64
- Number of CPU cores presented to the VM.
- Vmgroup
Template
Vmgroup Args - See VM group parameters below for details. Changing this argument triggers a new resource.
- context Map<String,String>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu Double
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - cpumodel
Template
Cpumodel - See CPUmodel parameters below for details.
- Map<String,String>
- Default tags defined in the provider configuration.
- description String
- The description of the template.
- disks
List<Template
Disk> - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
List<Template
Feature> - See Features parameters below for details.
- gid Double
- Group ID which owns the template.
- gname String
- Group Name which owns the template.
- graphics
Template
Graphics - See Graphics parameters below for details.
- group String
- Name of the group which owns the template. Defaults to the caller primary group.
- lock String
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory Double
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - name String
- The name of the virtual machine template.
- nic
Aliases List<TemplateNic Alias> - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- nics
List<Template
Nic> - Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- os
Template
Os - See OS parameters below for details.
- permissions String
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Template
Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- reg
Time Double - Registration time of the template.
- sched
Ds StringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements String - Scheduling requirements to deploy the resource following specific rule
- Map<String,String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Map<String,String>
- Result of the applied
default_tags
and then resourcetags
. - template
Id String - ID of the template.
- template
Sections List<TemplateTemplate Section> - Allow to add a custom vector. See Template section parameters
- uid Double
- User ID whom owns the template.
- uname String
- User Name whom owns the template.
- user
Inputs Map<String,String> - Ask the user instantiating the template to define the values described.
- vcpu Double
- Number of CPU cores presented to the VM.
- vmgroup
Template
Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- context {[key: string]: string}
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu number
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - cpumodel
Template
Cpumodel - See CPUmodel parameters below for details.
- {[key: string]: string}
- Default tags defined in the provider configuration.
- description string
- The description of the template.
- disks
Template
Disk[] - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
Template
Feature[] - See Features parameters below for details.
- gid number
- Group ID which owns the template.
- gname string
- Group Name which owns the template.
- graphics
Template
Graphics - See Graphics parameters below for details.
- group string
- Name of the group which owns the template. Defaults to the caller primary group.
- lock string
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory number
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - name string
- The name of the virtual machine template.
- nic
Aliases TemplateNic Alias[] - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- nics
Template
Nic[] - Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- os
Template
Os - See OS parameters below for details.
- permissions string
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Template
Raw - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- reg
Time number - Registration time of the template.
- sched
Ds stringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements string - Scheduling requirements to deploy the resource following specific rule
- {[key: string]: string}
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - {[key: string]: string}
- Result of the applied
default_tags
and then resourcetags
. - template
Id string - ID of the template.
- template
Sections TemplateTemplate Section[] - Allow to add a custom vector. See Template section parameters
- uid number
- User ID whom owns the template.
- uname string
- User Name whom owns the template.
- user
Inputs {[key: string]: string} - Ask the user instantiating the template to define the values described.
- vcpu number
- Number of CPU cores presented to the VM.
- vmgroup
Template
Vmgroup - See VM group parameters below for details. Changing this argument triggers a new resource.
- context Mapping[str, str]
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu float
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - cpumodel
Template
Cpumodel Args - See CPUmodel parameters below for details.
- Mapping[str, str]
- Default tags defined in the provider configuration.
- description str
- The description of the template.
- disks
Sequence[Template
Disk Args] - Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features
Sequence[Template
Feature Args] - See Features parameters below for details.
- gid float
- Group ID which owns the template.
- gname str
- Group Name which owns the template.
- graphics
Template
Graphics Args - See Graphics parameters below for details.
- group str
- Name of the group which owns the template. Defaults to the caller primary group.
- lock str
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory float
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - name str
- The name of the virtual machine template.
- nic_
aliases Sequence[TemplateNic Alias Args] - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- nics
Sequence[Template
Nic Args] - Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- os
Template
Os Args - See OS parameters below for details.
- permissions str
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw
Template
Raw Args - Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- reg_
time float - Registration time of the template.
- sched_
ds_ strrequirements - Storage placement requirements to deploy the resource following specific rule.
- sched_
requirements str - Scheduling requirements to deploy the resource following specific rule
- Mapping[str, str]
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Mapping[str, str]
- Result of the applied
default_tags
and then resourcetags
. - template_
id str - ID of the template.
- template_
sections Sequence[TemplateTemplate Section Args] - Allow to add a custom vector. See Template section parameters
- uid float
- User ID whom owns the template.
- uname str
- User Name whom owns the template.
- user_
inputs Mapping[str, str] - Ask the user instantiating the template to define the values described.
- vcpu float
- Number of CPU cores presented to the VM.
- vmgroup
Template
Vmgroup Args - See VM group parameters below for details. Changing this argument triggers a new resource.
- context Map<String>
- Array of free form key=value pairs, rendered and added to the CONTEXT variables for the VM. Recommended to include:
NETWORK = "YES"
andSET_HOSTNAME = "$NAME"
. - cpu Number
- Amount of CPU shares assigned to the VM. Mandatory if
template_****id
is not set. - cpumodel Property Map
- See CPUmodel parameters below for details.
- Map<String>
- Default tags defined in the provider configuration.
- description String
- The description of the template.
- disks List<Property Map>
- Can be specified multiple times to attach several disks. See Disks parameters below for details.
- features List<Property Map>
- See Features parameters below for details.
- gid Number
- Group ID which owns the template.
- gname String
- Group Name which owns the template.
- graphics Property Map
- See Graphics parameters below for details.
- group String
- Name of the group which owns the template. Defaults to the caller primary group.
- lock String
- Lock the template with a specific lock level. Supported values:
USE
,MANAGE
,ADMIN
,ALL
orUNLOCK
. - memory Number
- Amount of RAM assigned to the VM in MB. Mandatory if
template_****id
is not set. - name String
- The name of the virtual machine template.
- nic
Aliases List<Property Map> - Can be specified multiple times to attach several NIC Aliases. See Nic alias parameters below for details.
- nics List<Property Map>
- Can be specified multiple times to attach several NICs. See Nic parameters below for details.
- os Property Map
- See OS parameters below for details.
- permissions String
- Permissions applied on template. Defaults to the UMASK in OpenNebula (in UNIX Format: owner-group-other => Use-Manage-Admin).
- raw Property Map
- Allow to pass hypervisor level tuning content. See Raw parameters below for details.
- reg
Time Number - Registration time of the template.
- sched
Ds StringRequirements - Storage placement requirements to deploy the resource following specific rule.
- sched
Requirements String - Scheduling requirements to deploy the resource following specific rule
- Map<String>
- Map of tags (
key=value
) assigned to the resource. Override matching tags present in thedefault_tags
atribute when configured in theprovider
block. See tags usage related documentation for more information. - Map<String>
- Result of the applied
default_tags
and then resourcetags
. - template
Id String - ID of the template.
- template
Sections List<Property Map> - Allow to add a custom vector. See Template section parameters
- uid Number
- User ID whom owns the template.
- uname String
- User Name whom owns the template.
- user
Inputs Map<String> - Ask the user instantiating the template to define the values described.
- vcpu Number
- Number of CPU cores presented to the VM.
- vmgroup Property Map
- See VM group parameters below for details. Changing this argument triggers a new resource.
Supporting Types
TemplateCpumodel, TemplateCpumodelArgs
- Model string
- CPU model to be used on the virtual machine.
- Model string
- CPU model to be used on the virtual machine.
- model String
- CPU model to be used on the virtual machine.
- model string
- CPU model to be used on the virtual machine.
- model str
- CPU model to be used on the virtual machine.
- model String
- CPU model to be used on the virtual machine.
TemplateDisk, TemplateDiskArgs
- Cache string
- Selects the cache mechanism for the disk. Values are default, none, writethrough, writeback, directsync and unsafe.
- Dev
Prefix string - Prefix for the emulated device this image will be mounted at. For instance, attribute of the Image will be used.
- Discard string
- Controls what’s done with with trim commands to the disk, the values can be ignore or discard.
- Driver string
- OpenNebula image driver.
- Image
Id double - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - Io string
- Set IO policy. Values are threads, native.
- Size double
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- Target string
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - Volatile
Format string Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- Volatile
Type string - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- Cache string
- Selects the cache mechanism for the disk. Values are default, none, writethrough, writeback, directsync and unsafe.
- Dev
Prefix string - Prefix for the emulated device this image will be mounted at. For instance, attribute of the Image will be used.
- Discard string
- Controls what’s done with with trim commands to the disk, the values can be ignore or discard.
- Driver string
- OpenNebula image driver.
- Image
Id float64 - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - Io string
- Set IO policy. Values are threads, native.
- Size float64
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- Target string
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - Volatile
Format string Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- Volatile
Type string - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache String
- Selects the cache mechanism for the disk. Values are default, none, writethrough, writeback, directsync and unsafe.
- dev
Prefix String - Prefix for the emulated device this image will be mounted at. For instance, attribute of the Image will be used.
- discard String
- Controls what’s done with with trim commands to the disk, the values can be ignore or discard.
- driver String
- OpenNebula image driver.
- image
Id Double - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - io String
- Set IO policy. Values are threads, native.
- size Double
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- target String
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - volatile
Format String Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- volatile
Type String - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache string
- Selects the cache mechanism for the disk. Values are default, none, writethrough, writeback, directsync and unsafe.
- dev
Prefix string - Prefix for the emulated device this image will be mounted at. For instance, attribute of the Image will be used.
- discard string
- Controls what’s done with with trim commands to the disk, the values can be ignore or discard.
- driver string
- OpenNebula image driver.
- image
Id number - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - io string
- Set IO policy. Values are threads, native.
- size number
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- target string
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - volatile
Format string Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- volatile
Type string - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache str
- Selects the cache mechanism for the disk. Values are default, none, writethrough, writeback, directsync and unsafe.
- dev_
prefix str - Prefix for the emulated device this image will be mounted at. For instance, attribute of the Image will be used.
- discard str
- Controls what’s done with with trim commands to the disk, the values can be ignore or discard.
- driver str
- OpenNebula image driver.
- image_
id float - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - io str
- Set IO policy. Values are threads, native.
- size float
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- target str
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - volatile_
format str Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- volatile_
type str - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
- cache String
- Selects the cache mechanism for the disk. Values are default, none, writethrough, writeback, directsync and unsafe.
- dev
Prefix String - Prefix for the emulated device this image will be mounted at. For instance, attribute of the Image will be used.
- discard String
- Controls what’s done with with trim commands to the disk, the values can be ignore or discard.
- driver String
- OpenNebula image driver.
- image
Id Number - ID of the image to attach to the virtual machine. Conflicts with
volatile_type
andvolatile_format
. - io String
- Set IO policy. Values are threads, native.
- size Number
- Size (in MB) of the image attached to the virtual machine. Not possible to change a cloned image size.
- target String
- Target name device on the virtual machine. Depends of the image
dev_prefix
. - volatile
Format String Format of the volatile disk:
raw
orqcow2
. Conflicts withimage_id
.Minimum 1 item. Maximum 8 items.
- volatile
Type String - Type of the volatile disk:
swap
orfs
. Typeswap
is not supported in vcenter. Conflicts withimage_id
.
TemplateFeature, TemplateFeatureArgs
- Acpi string
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - Apic string
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - Guest
Agent string - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - Hyperv string
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- Iothreads string
- 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.
- Localtime string
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - Pae string
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- Virtio
Scsi stringQueues - Numer of vCPU queues for the virtio-scsi controller.
- Acpi string
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - Apic string
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - Guest
Agent string - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - Hyperv string
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- Iothreads string
- 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.
- Localtime string
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - Pae string
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- Virtio
Scsi stringQueues - Numer of vCPU queues for the virtio-scsi controller.
- acpi String
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - apic String
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - guest
Agent String - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - hyperv String
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- iothreads String
- 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.
- localtime String
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - pae String
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- virtio
Scsi StringQueues - Numer of vCPU queues for the virtio-scsi controller.
- acpi string
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - apic string
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - guest
Agent string - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - hyperv string
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- iothreads string
- 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.
- localtime string
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - pae string
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- virtio
Scsi stringQueues - Numer of vCPU queues for the virtio-scsi controller.
- acpi str
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - apic str
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - guest_
agent str - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - hyperv str
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- iothreads str
- 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.
- localtime str
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - pae str
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- virtio_
scsi_ strqueues - Numer of vCPU queues for the virtio-scsi controller.
- acpi String
- Useful for power management, for example, with KVM guests it is required for graceful shutdown to work. (Can be
YES
orNO
) - apic String
- Enables the advanced programmable IRQ management. Useful for SMP machines. (Can be
YES
orNO
) - guest
Agent String - Enables the QEMU Guest Agent communication. This only creates the socket inside the VM, the Guest Agent itself must be installed and started in the VM. (Can be
YES
orNO
) - hyperv String
- Add hyperv extensions to the VM. The options can be configured in the driver configuration, HYPERV_OPTIONS.
- iothreads String
- 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.
- localtime String
- The guest clock will be synchronized to the host’s configured timezone when booted. Useful for Windows VMs. (Can be
YES
orNO
) - pae String
- Physical address extension mode allows 32-bit guests to address more than 4 GB of memory.
- virtio
Scsi StringQueues - Numer of vCPU queues for the virtio-scsi controller.
TemplateGraphics, TemplateGraphicsArgs
TemplateNic, TemplateNicArgs
- Dns string
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - Gateway string
- Default gateway set for the NIC.
- Ip string
- IPv4 of the virtual machine on this network.
- Ip6 string
- IPv6 of the virtual machine on this network.
- Ip6Global string
- IPv6 global address of the virtual machine on this network.
- Ip6Link string
- IPv6 link-local address of the virtual machine on this network.
- Ip6Ula string
- IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- Mac string
- MAC of the virtual machine on this network.
- Method string
- Method of obtaining IP addresses (empty or
static
,dhcp
,skip
). - Model string
- Nic model driver. Example:
virtio
. - Name string
- The name of the NIC. This could be used for reference the NIC as a parent of a NIC Alias.
- Network string
- The name of the virtual network to attach to the virtual machine.
- Network
Id double - ID of the virtual network to attach to the virtual machine.
- Network
Mode boolAuto - A boolean letting the scheduler pick the Virtual Networks the VM NICs will be attached to. Can only be used at VM creation.
- Physical
Device string - Physical device hosting the virtual network.
- Sched
Rank string Arithmetic expression to sort the suitable Virtual Networks for this NIC, when
network_mode_auto
is true. Can only be used at VM creation.Minimum 1 item. Maximum 8 items.
- Sched
Requirements string - A boolean expression to select virtual networks (evaluates to true) to attach the NIC, when
network_mode_auto
is true. Can only be used at VM creation. - Security
Groups List<double> - List of security group IDs to use on the virtual network.
- Virtio
Queues string - Virtio multi-queue size. Only if
model
isvirtio
.
- Dns string
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - Gateway string
- Default gateway set for the NIC.
- Ip string
- IPv4 of the virtual machine on this network.
- Ip6 string
- IPv6 of the virtual machine on this network.
- Ip6Global string
- IPv6 global address of the virtual machine on this network.
- Ip6Link string
- IPv6 link-local address of the virtual machine on this network.
- Ip6Ula string
- IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- Mac string
- MAC of the virtual machine on this network.
- Method string
- Method of obtaining IP addresses (empty or
static
,dhcp
,skip
). - Model string
- Nic model driver. Example:
virtio
. - Name string
- The name of the NIC. This could be used for reference the NIC as a parent of a NIC Alias.
- Network string
- The name of the virtual network to attach to the virtual machine.
- Network
Id float64 - ID of the virtual network to attach to the virtual machine.
- Network
Mode boolAuto - A boolean letting the scheduler pick the Virtual Networks the VM NICs will be attached to. Can only be used at VM creation.
- Physical
Device string - Physical device hosting the virtual network.
- Sched
Rank string Arithmetic expression to sort the suitable Virtual Networks for this NIC, when
network_mode_auto
is true. Can only be used at VM creation.Minimum 1 item. Maximum 8 items.
- Sched
Requirements string - A boolean expression to select virtual networks (evaluates to true) to attach the NIC, when
network_mode_auto
is true. Can only be used at VM creation. - Security
Groups []float64 - List of security group IDs to use on the virtual network.
- Virtio
Queues string - Virtio multi-queue size. Only if
model
isvirtio
.
- dns String
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - gateway String
- Default gateway set for the NIC.
- ip String
- IPv4 of the virtual machine on this network.
- ip6 String
- IPv6 of the virtual machine on this network.
- ip6Global String
- IPv6 global address of the virtual machine on this network.
- ip6Link String
- IPv6 link-local address of the virtual machine on this network.
- ip6Ula String
- IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- mac String
- MAC of the virtual machine on this network.
- method String
- Method of obtaining IP addresses (empty or
static
,dhcp
,skip
). - model String
- Nic model driver. Example:
virtio
. - name String
- The name of the NIC. This could be used for reference the NIC as a parent of a NIC Alias.
- network String
- The name of the virtual network to attach to the virtual machine.
- network
Id Double - ID of the virtual network to attach to the virtual machine.
- network
Mode BooleanAuto - A boolean letting the scheduler pick the Virtual Networks the VM NICs will be attached to. Can only be used at VM creation.
- physical
Device String - Physical device hosting the virtual network.
- sched
Rank String Arithmetic expression to sort the suitable Virtual Networks for this NIC, when
network_mode_auto
is true. Can only be used at VM creation.Minimum 1 item. Maximum 8 items.
- sched
Requirements String - A boolean expression to select virtual networks (evaluates to true) to attach the NIC, when
network_mode_auto
is true. Can only be used at VM creation. - security
Groups List<Double> - List of security group IDs to use on the virtual network.
- virtio
Queues String - Virtio multi-queue size. Only if
model
isvirtio
.
- dns string
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - gateway string
- Default gateway set for the NIC.
- ip string
- IPv4 of the virtual machine on this network.
- ip6 string
- IPv6 of the virtual machine on this network.
- ip6Global string
- IPv6 global address of the virtual machine on this network.
- ip6Link string
- IPv6 link-local address of the virtual machine on this network.
- ip6Ula string
- IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- mac string
- MAC of the virtual machine on this network.
- method string
- Method of obtaining IP addresses (empty or
static
,dhcp
,skip
). - model string
- Nic model driver. Example:
virtio
. - name string
- The name of the NIC. This could be used for reference the NIC as a parent of a NIC Alias.
- network string
- The name of the virtual network to attach to the virtual machine.
- network
Id number - ID of the virtual network to attach to the virtual machine.
- network
Mode booleanAuto - A boolean letting the scheduler pick the Virtual Networks the VM NICs will be attached to. Can only be used at VM creation.
- physical
Device string - Physical device hosting the virtual network.
- sched
Rank string Arithmetic expression to sort the suitable Virtual Networks for this NIC, when
network_mode_auto
is true. Can only be used at VM creation.Minimum 1 item. Maximum 8 items.
- sched
Requirements string - A boolean expression to select virtual networks (evaluates to true) to attach the NIC, when
network_mode_auto
is true. Can only be used at VM creation. - security
Groups number[] - List of security group IDs to use on the virtual network.
- virtio
Queues string - Virtio multi-queue size. Only if
model
isvirtio
.
- dns str
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - gateway str
- Default gateway set for the NIC.
- ip str
- IPv4 of the virtual machine on this network.
- ip6 str
- IPv6 of the virtual machine on this network.
- ip6_
global str - IPv6 global address of the virtual machine on this network.
- ip6_
link str - IPv6 link-local address of the virtual machine on this network.
- ip6_
ula str - IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- mac str
- MAC of the virtual machine on this network.
- method str
- Method of obtaining IP addresses (empty or
static
,dhcp
,skip
). - model str
- Nic model driver. Example:
virtio
. - name str
- The name of the NIC. This could be used for reference the NIC as a parent of a NIC Alias.
- network str
- The name of the virtual network to attach to the virtual machine.
- network_
id float - ID of the virtual network to attach to the virtual machine.
- network_
mode_ boolauto - A boolean letting the scheduler pick the Virtual Networks the VM NICs will be attached to. Can only be used at VM creation.
- physical_
device str - Physical device hosting the virtual network.
- sched_
rank str Arithmetic expression to sort the suitable Virtual Networks for this NIC, when
network_mode_auto
is true. Can only be used at VM creation.Minimum 1 item. Maximum 8 items.
- sched_
requirements str - A boolean expression to select virtual networks (evaluates to true) to attach the NIC, when
network_mode_auto
is true. Can only be used at VM creation. - security_
groups Sequence[float] - List of security group IDs to use on the virtual network.
- virtio_
queues str - Virtio multi-queue size. Only if
model
isvirtio
.
- dns String
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - gateway String
- Default gateway set for the NIC.
- ip String
- IPv4 of the virtual machine on this network.
- ip6 String
- IPv6 of the virtual machine on this network.
- ip6Global String
- IPv6 global address of the virtual machine on this network.
- ip6Link String
- IPv6 link-local address of the virtual machine on this network.
- ip6Ula String
- IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- mac String
- MAC of the virtual machine on this network.
- method String
- Method of obtaining IP addresses (empty or
static
,dhcp
,skip
). - model String
- Nic model driver. Example:
virtio
. - name String
- The name of the NIC. This could be used for reference the NIC as a parent of a NIC Alias.
- network String
- The name of the virtual network to attach to the virtual machine.
- network
Id Number - ID of the virtual network to attach to the virtual machine.
- network
Mode BooleanAuto - A boolean letting the scheduler pick the Virtual Networks the VM NICs will be attached to. Can only be used at VM creation.
- physical
Device String - Physical device hosting the virtual network.
- sched
Rank String Arithmetic expression to sort the suitable Virtual Networks for this NIC, when
network_mode_auto
is true. Can only be used at VM creation.Minimum 1 item. Maximum 8 items.
- sched
Requirements String - A boolean expression to select virtual networks (evaluates to true) to attach the NIC, when
network_mode_auto
is true. Can only be used at VM creation. - security
Groups List<Number> - List of security group IDs to use on the virtual network.
- virtio
Queues String - Virtio multi-queue size. Only if
model
isvirtio
.
TemplateNicAlias, TemplateNicAliasArgs
- Parent string
- The parent NIC name.
- Dns string
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - Gateway string
- Default gateway set for the NIC.
- Ip string
- IP of the virtual machine on this network.
- Ip6 string
- IPv6 of the virtual machine on this network.
- Ip6Global string
- IPv6 global address of the virtual machine on this network.
- Ip6Link string
- IPv6 link-local address of the virtual machine on this network.
- Ip6Ula string
- IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- Mac string
- MAC of the virtual machine on this network.
- Name string
- The name of the NIC Alias.
- Network string
- The name of the virtual network to attach to the virtual machine.
- Network
Id double - ID of the virtual network to attach to the virtual machine.
- Security
Groups List<double> - List of security group IDs to use on the virtual network.
- Parent string
- The parent NIC name.
- Dns string
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - Gateway string
- Default gateway set for the NIC.
- Ip string
- IP of the virtual machine on this network.
- Ip6 string
- IPv6 of the virtual machine on this network.
- Ip6Global string
- IPv6 global address of the virtual machine on this network.
- Ip6Link string
- IPv6 link-local address of the virtual machine on this network.
- Ip6Ula string
- IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- Mac string
- MAC of the virtual machine on this network.
- Name string
- The name of the NIC Alias.
- Network string
- The name of the virtual network to attach to the virtual machine.
- Network
Id float64 - ID of the virtual network to attach to the virtual machine.
- Security
Groups []float64 - List of security group IDs to use on the virtual network.
- parent String
- The parent NIC name.
- dns String
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - gateway String
- Default gateway set for the NIC.
- ip String
- IP of the virtual machine on this network.
- ip6 String
- IPv6 of the virtual machine on this network.
- ip6Global String
- IPv6 global address of the virtual machine on this network.
- ip6Link String
- IPv6 link-local address of the virtual machine on this network.
- ip6Ula String
- IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- mac String
- MAC of the virtual machine on this network.
- name String
- The name of the NIC Alias.
- network String
- The name of the virtual network to attach to the virtual machine.
- network
Id Double - ID of the virtual network to attach to the virtual machine.
- security
Groups List<Double> - List of security group IDs to use on the virtual network.
- parent string
- The parent NIC name.
- dns string
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - gateway string
- Default gateway set for the NIC.
- ip string
- IP of the virtual machine on this network.
- ip6 string
- IPv6 of the virtual machine on this network.
- ip6Global string
- IPv6 global address of the virtual machine on this network.
- ip6Link string
- IPv6 link-local address of the virtual machine on this network.
- ip6Ula string
- IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- mac string
- MAC of the virtual machine on this network.
- name string
- The name of the NIC Alias.
- network string
- The name of the virtual network to attach to the virtual machine.
- network
Id number - ID of the virtual network to attach to the virtual machine.
- security
Groups number[] - List of security group IDs to use on the virtual network.
- parent str
- The parent NIC name.
- dns str
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - gateway str
- Default gateway set for the NIC.
- ip str
- IP of the virtual machine on this network.
- ip6 str
- IPv6 of the virtual machine on this network.
- ip6_
global str - IPv6 global address of the virtual machine on this network.
- ip6_
link str - IPv6 link-local address of the virtual machine on this network.
- ip6_
ula str - IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- mac str
- MAC of the virtual machine on this network.
- name str
- The name of the NIC Alias.
- network str
- The name of the virtual network to attach to the virtual machine.
- network_
id float - ID of the virtual network to attach to the virtual machine.
- security_
groups Sequence[float] - List of security group IDs to use on the virtual network.
- parent String
- The parent NIC name.
- dns String
- DNS server set for the NIC. Please make sure
INHERIT_VNET_ATTR="DNS"
is added to/etc/one/oned.conf
. - gateway String
- Default gateway set for the NIC.
- ip String
- IP of the virtual machine on this network.
- ip6 String
- IPv6 of the virtual machine on this network.
- ip6Global String
- IPv6 global address of the virtual machine on this network.
- ip6Link String
- IPv6 link-local address of the virtual machine on this network.
- ip6Ula String
- IPv6 ULA (Unique Local Address) of the virtual machine on this network.
- mac String
- MAC of the virtual machine on this network.
- name String
- The name of the NIC Alias.
- network String
- The name of the virtual network to attach to the virtual machine.
- network
Id Number - ID of the virtual network to attach to the virtual machine.
- security
Groups List<Number> - List of security group IDs to use on the virtual network.
TemplateOs, TemplateOsArgs
- Arch string
- Hardware architecture of the Virtual machine. Must fit the host architecture.
- Boot string
OS
disk to use to boot on.- Bootloader string
- Path to the bootloader executable.
- Firmware string
- Firmware type or firmware path. Possible values:
BIOS
or path for KVM,BIOS
orUEFI
for vCenter. - Firmware
Secure bool - Enable Secure Boot. (Can be
true
orfalse
).- (!!) Use one of
kernel_ds
orkernel
(andinitrd
orinitrd_ds
).
- (!!) Use one of
- Initrd string
- Path to the initrd image in the host.
- Initrd
Ds string - Image to be used as ramdisk. (see !!)
- Kernel string
- Path to the
OS
kernel to boot the image in the host. - Kernel
Cmd string - Arguments for the booting kernel.
- Kernel
Ds string - Image to be used as kernel. (see !!)
- Machine string
- libvirt machine type.
- Root string
- Device to be mounted as root.
- Sd
Disk stringBus - Bus for disks with sd prefix, either
scsi
orsata
, if attribute is missing, libvirt chooses itself. - Uuid string
- Unique ID of the VM.
- Arch string
- Hardware architecture of the Virtual machine. Must fit the host architecture.
- Boot string
OS
disk to use to boot on.- Bootloader string
- Path to the bootloader executable.
- Firmware string
- Firmware type or firmware path. Possible values:
BIOS
or path for KVM,BIOS
orUEFI
for vCenter. - Firmware
Secure bool - Enable Secure Boot. (Can be
true
orfalse
).- (!!) Use one of
kernel_ds
orkernel
(andinitrd
orinitrd_ds
).
- (!!) Use one of
- Initrd string
- Path to the initrd image in the host.
- Initrd
Ds string - Image to be used as ramdisk. (see !!)
- Kernel string
- Path to the
OS
kernel to boot the image in the host. - Kernel
Cmd string - Arguments for the booting kernel.
- Kernel
Ds string - Image to be used as kernel. (see !!)
- Machine string
- libvirt machine type.
- Root string
- Device to be mounted as root.
- Sd
Disk stringBus - Bus for disks with sd prefix, either
scsi
orsata
, if attribute is missing, libvirt chooses itself. - Uuid string
- Unique ID of the VM.
- arch String
- Hardware architecture of the Virtual machine. Must fit the host architecture.
- boot String
OS
disk to use to boot on.- bootloader String
- Path to the bootloader executable.
- firmware String
- Firmware type or firmware path. Possible values:
BIOS
or path for KVM,BIOS
orUEFI
for vCenter. - firmware
Secure Boolean - Enable Secure Boot. (Can be
true
orfalse
).- (!!) Use one of
kernel_ds
orkernel
(andinitrd
orinitrd_ds
).
- (!!) Use one of
- initrd String
- Path to the initrd image in the host.
- initrd
Ds String - Image to be used as ramdisk. (see !!)
- kernel String
- Path to the
OS
kernel to boot the image in the host. - kernel
Cmd String - Arguments for the booting kernel.
- kernel
Ds String - Image to be used as kernel. (see !!)
- machine String
- libvirt machine type.
- root String
- Device to be mounted as root.
- sd
Disk StringBus - Bus for disks with sd prefix, either
scsi
orsata
, if attribute is missing, libvirt chooses itself. - uuid String
- Unique ID of the VM.
- arch string
- Hardware architecture of the Virtual machine. Must fit the host architecture.
- boot string
OS
disk to use to boot on.- bootloader string
- Path to the bootloader executable.
- firmware string
- Firmware type or firmware path. Possible values:
BIOS
or path for KVM,BIOS
orUEFI
for vCenter. - firmware
Secure boolean - Enable Secure Boot. (Can be
true
orfalse
).- (!!) Use one of
kernel_ds
orkernel
(andinitrd
orinitrd_ds
).
- (!!) Use one of
- initrd string
- Path to the initrd image in the host.
- initrd
Ds string - Image to be used as ramdisk. (see !!)
- kernel string
- Path to the
OS
kernel to boot the image in the host. - kernel
Cmd string - Arguments for the booting kernel.
- kernel
Ds string - Image to be used as kernel. (see !!)
- machine string
- libvirt machine type.
- root string
- Device to be mounted as root.
- sd
Disk stringBus - Bus for disks with sd prefix, either
scsi
orsata
, if attribute is missing, libvirt chooses itself. - uuid string
- Unique ID of the VM.
- arch str
- Hardware architecture of the Virtual machine. Must fit the host architecture.
- boot str
OS
disk to use to boot on.- bootloader str
- Path to the bootloader executable.
- firmware str
- Firmware type or firmware path. Possible values:
BIOS
or path for KVM,BIOS
orUEFI
for vCenter. - firmware_
secure bool - Enable Secure Boot. (Can be
true
orfalse
).- (!!) Use one of
kernel_ds
orkernel
(andinitrd
orinitrd_ds
).
- (!!) Use one of
- initrd str
- Path to the initrd image in the host.
- initrd_
ds str - Image to be used as ramdisk. (see !!)
- kernel str
- Path to the
OS
kernel to boot the image in the host. - kernel_
cmd str - Arguments for the booting kernel.
- kernel_
ds str - Image to be used as kernel. (see !!)
- machine str
- libvirt machine type.
- root str
- Device to be mounted as root.
- sd_
disk_ strbus - Bus for disks with sd prefix, either
scsi
orsata
, if attribute is missing, libvirt chooses itself. - uuid str
- Unique ID of the VM.
- arch String
- Hardware architecture of the Virtual machine. Must fit the host architecture.
- boot String
OS
disk to use to boot on.- bootloader String
- Path to the bootloader executable.
- firmware String
- Firmware type or firmware path. Possible values:
BIOS
or path for KVM,BIOS
orUEFI
for vCenter. - firmware
Secure Boolean - Enable Secure Boot. (Can be
true
orfalse
).- (!!) Use one of
kernel_ds
orkernel
(andinitrd
orinitrd_ds
).
- (!!) Use one of
- initrd String
- Path to the initrd image in the host.
- initrd
Ds String - Image to be used as ramdisk. (see !!)
- kernel String
- Path to the
OS
kernel to boot the image in the host. - kernel
Cmd String - Arguments for the booting kernel.
- kernel
Ds String - Image to be used as kernel. (see !!)
- machine String
- libvirt machine type.
- root String
- Device to be mounted as root.
- sd
Disk StringBus - Bus for disks with sd prefix, either
scsi
orsata
, if attribute is missing, libvirt chooses itself. - uuid String
- Unique ID of the VM.
TemplateRaw, TemplateRawArgs
TemplateTemplateSection, TemplateTemplateSectionArgs
TemplateVmgroup, TemplateVmgroupArgs
- role str
- role of the VM group to use.
- vmgroup_
id float - ID of the VM group to use.
Import
opennebula_template
can be imported using its ID:
$ pulumi import opennebula:index/template:Template example 123
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opennebula opennebula/terraform-provider-opennebula
- License
- Notes
- This Pulumi package is based on the
opennebula
Terraform Provider.