From 61a5fc289f16aa353854641a21bb5f2b21a5bf81 Mon Sep 17 00:00:00 2001 From: Tine Date: Tue, 17 Sep 2024 22:01:55 +0200 Subject: [PATCH] feat: agent --- terraform/node.tf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/terraform/node.tf b/terraform/node.tf index 2a16340..b3def14 100644 --- a/terraform/node.tf +++ b/terraform/node.tf @@ -36,11 +36,9 @@ resource "proxmox_virtual_environment_file" "userdata" { content: ${base64encode(jsonencode({ name : each.value.name, domain : each.value.domain }))} ssh_authorized_keys: ${jsonencode(var.ssh_keys)} packages: - - htop - - git - qemu-guest-agent - run_cmd: - - systemctl enable --now qemu-guest-agent + power_state: + mode: reboot EOF file_name = "${each.value.name}.ingress.tjo.cloud.userconfig.yaml" } @@ -80,6 +78,10 @@ resource "proxmox_virtual_environment_vm" "nodes" { type = "l26" } + agent { + enabled = true + } + network_device { bridge = each.value.bridge mac_address = each.value.mac_address