Skip to content

Commit

Permalink
refactor: add variable for qemu_agent
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Dec 21, 2023
1 parent fb38788 commit e5f915f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion domain-cloudinit/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resource "libvirt_domain" "domain" {
autostart = var.domain_autostart
running = var.running
cloudinit = libvirt_cloudinit_disk.init.id
qemu_agent = true
qemu_agent = var.qemu_agent

network_interface {
network_name = var.network_name
Expand Down
5 changes: 5 additions & 0 deletions domain-cloudinit/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ variable "cloudinit_user_data" {
default = "templates/cloud_init.cfg"
}

variable "qemu_agent" {
type = bool
default = false
}

variable "cloudinit_user_network" {
description = "cloudinit network config file"
type = string
Expand Down

0 comments on commit e5f915f

Please sign in to comment.