Skip to content

Commit

Permalink
Merge pull request #6 from FriedCircuits/feature/onboot-oncreate-vars
Browse files Browse the repository at this point in the history
Add vars for oncreate/onboot
  • Loading branch information
FriedCircuits authored Dec 12, 2021
2 parents 11d23ac + 8517f30 commit d2b3906
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 d2b3906

Please sign in to comment.