120 lines
2.2 KiB
Terraform
120 lines
2.2 KiB
Terraform
variable "pm_api_url" {
|
|
type = string
|
|
default = "https://10.0.4.9:8006/api2/json"
|
|
}
|
|
variable "pm_api_token_id" {
|
|
type = string
|
|
default = " terraform-prov@pve!terraform"
|
|
}
|
|
variable "pm_api_token_secret" {
|
|
type = string
|
|
default = "1e633e4b-216a-4343-9522-60a642557480"
|
|
}
|
|
|
|
variable "pm_user" {
|
|
type = string
|
|
default = "terraform"
|
|
}
|
|
|
|
variable "pm_password" {
|
|
type = string
|
|
default = "Centreon+"
|
|
}
|
|
|
|
variable "ssh_key" {
|
|
default = "ssh-rsa AAAAB3NzaC1y............c2EAAAABIwAAA== user@destop.exemple.tld"
|
|
}
|
|
|
|
variable "api_token" {
|
|
description = "Token to connect Proxmox API"
|
|
type = string
|
|
default = "1e633e4b-216a-4343-9522-60a642557480"
|
|
}
|
|
|
|
variable "target_node" {
|
|
description = "Proxmox node"
|
|
type = string
|
|
default = "devbox1"
|
|
}
|
|
|
|
variable "onboot" {
|
|
description = "Auto start VM when node is start"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "target_node_domain" {
|
|
description = "Proxmox node domain"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "vm_hostname" {
|
|
description = "VM hostname"
|
|
type = string
|
|
default = "test"
|
|
}
|
|
|
|
variable "domain" {
|
|
description = "VM domain"
|
|
type = string
|
|
default = "robert.local"
|
|
}
|
|
|
|
variable "vm_tags" {
|
|
description = "VM tags"
|
|
type = list(string)
|
|
default = [ "ubuntu" ]
|
|
}
|
|
|
|
variable "template_tag" {
|
|
description = "Template tag"
|
|
type = string
|
|
default = "test"
|
|
}
|
|
|
|
variable "sockets" {
|
|
description = "Number of sockets"
|
|
type = number
|
|
default = 1
|
|
}
|
|
|
|
variable "cores" {
|
|
description = "Number of cores"
|
|
type = number
|
|
default = 1
|
|
}
|
|
|
|
variable "memory" {
|
|
description = "Number of memory in MB"
|
|
type = number
|
|
default = 2048
|
|
}
|
|
|
|
variable "vm_user" {
|
|
description = "User"
|
|
type = string
|
|
sensitive = true
|
|
default = "sysadmin"
|
|
}
|
|
|
|
variable "disk" {
|
|
description = "Disk (size in Gb)"
|
|
type = object({
|
|
storage = string
|
|
size = number
|
|
})
|
|
default = {
|
|
storage = "local"
|
|
size = 10
|
|
}
|
|
}
|
|
|
|
variable "additionnal_disks" {
|
|
description = "Additionnal disks"
|
|
type = list(object({
|
|
storage = string
|
|
size = number
|
|
}))
|
|
default = []
|
|
} |