Add terraform module
Terraform is used to manage the VMs on the Proxmox host `busch`.
This commit is contained in:
parent
85c7dab078
commit
62334a00dd
8 changed files with 253 additions and 0 deletions
64
terraform/busch/modules/proxmox-vm/variables.tf
Normal file
64
terraform/busch/modules/proxmox-vm/variables.tf
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
variable "vmid" {
|
||||
description = "ID of the VM to create"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "name" {
|
||||
description = "Name of the VM to create"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "description" {
|
||||
description = "Description of the VM to create"
|
||||
type = string
|
||||
default = null
|
||||
nullable = true
|
||||
}
|
||||
|
||||
variable "target_node" {
|
||||
description = "Name of the target node to create the VM on"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "memory" {
|
||||
description = "Memory to allocate for the VM"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "cpu_cores" {
|
||||
description = "Number of CPU cores to allocate for the VM"
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "disk_storage" {
|
||||
description = "Name of the storage to store the disk on"
|
||||
type = string
|
||||
default = "local"
|
||||
}
|
||||
|
||||
variable "disk_size" {
|
||||
description = "Size of the primary disk"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "iso_path" {
|
||||
description = "Path of the ISO to use to install an OS"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "startup_order" {
|
||||
description = "Order number of the VM in the startup chain"
|
||||
type = number
|
||||
}
|
||||
|
||||
variable "startup_delay" {
|
||||
description = "Startup delay in seconds"
|
||||
type = number
|
||||
default = -1
|
||||
}
|
||||
|
||||
variable "mapped_pcie_devices" {
|
||||
description = "PCI mappings"
|
||||
type = list(string)
|
||||
default = []
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue