format code
This commit is contained in:
parent
fd2cd3441b
commit
d24c18ebcb
@ -42,7 +42,7 @@ resource "proxmox_virtual_environment_vm" "vm" {
|
|||||||
}
|
}
|
||||||
stop_on_destroy = true
|
stop_on_destroy = true
|
||||||
clone {
|
clone {
|
||||||
vm_id = data.proxmox_virtual_environment_vms.template.vms[0].vm_id
|
vm_id = data.proxmox_virtual_environment_vms.template.vms[0].vm_id
|
||||||
node_name = data.proxmox_virtual_environment_vms.template.vms[0].node_name
|
node_name = data.proxmox_virtual_environment_vms.template.vms[0].node_name
|
||||||
}
|
}
|
||||||
bios = var.vm_bios
|
bios = var.vm_bios
|
||||||
|
@ -22,8 +22,8 @@ variable "node_datastore" {
|
|||||||
|
|
||||||
variable "vm_template" {
|
variable "vm_template" {
|
||||||
description = "Template of the VM"
|
description = "Template of the VM"
|
||||||
type = string
|
type = string
|
||||||
default = "ubuntu-cloud"
|
default = "ubuntu-cloud"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "vm_name" {
|
variable "vm_name" {
|
||||||
@ -33,14 +33,14 @@ variable "vm_name" {
|
|||||||
|
|
||||||
variable "vm_user" {
|
variable "vm_user" {
|
||||||
description = "Admin user of the VM"
|
description = "Admin user of the VM"
|
||||||
type = string
|
type = string
|
||||||
default = "vez"
|
default = "vez"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "vm_user_sshkey" {
|
variable "vm_user_sshkey" {
|
||||||
description = "Admin user SSH key of the VM"
|
description = "Admin user SSH key of the VM"
|
||||||
type = string
|
type = string
|
||||||
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID62LmYRu1rDUha3timAIcA39LtcIOny1iAgFLnxoBxm vez@bastion"
|
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID62LmYRu1rDUha3timAIcA39LtcIOny1iAgFLnxoBxm vez@bastion"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "vm_cpu" {
|
variable "vm_cpu" {
|
||||||
@ -75,6 +75,6 @@ variable "vm_vlan" {
|
|||||||
|
|
||||||
variable "vm_tags" {
|
variable "vm_tags" {
|
||||||
description = "Tags for the VM"
|
description = "Tags for the VM"
|
||||||
type = list
|
type = list(any)
|
||||||
default = ["test"]
|
default = ["test"]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user