Skip to content

Commit

Permalink
Add autostart var
Browse files Browse the repository at this point in the history
  • Loading branch information
x86-39 committed Jun 10, 2023
1 parent 5f3b93b commit 8d7460b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ resource "libvirt_domain" "domain" {
memory = var.memory
vcpu = var.vcpu

autostart = var.autostart

cloudinit = libvirt_cloudinit_disk.init_disk.id // Attach cloud-init disk

disk {
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ variable "domain" {
default = ""
}

variable "autostart" {
type = bool
default = true
}

variable "ansible_name" {
type = string
default = ""
Expand Down

0 comments on commit 8d7460b

Please sign in to comment.