Skip to content

Commit

Permalink
Add vars for oncreate and onboot
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedCircuits committed Dec 12, 2021
1 parent 11d23ac commit 8517f30
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/proxmox/vm-clone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ resource "proxmox_vm_qemu" "vm" {
boot = "order=virtio0;ide2;net0"
bootdisk = "virtio0"
agent = var.agent_enabled
onboot = var.onboot
oncreate = var.oncreate

clone = var.clone
full_clone = var.full_clone
Expand Down
12 changes: 12 additions & 0 deletions modules/proxmox/vm-clone/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,15 @@ variable "tags" {
type = string
default = null
}

variable "onboot" {
description = "Whether to have the VM startup after the PVE node starts."
type = bool
default = true
}

variable "oncreate" {
description = "Whether to have the VM startup after the VM is created."
type = bool
default = true
}

0 comments on commit 8517f30

Please sign in to comment.