feat: agent

This commit is contained in:
Tine 2024-09-17 22:01:55 +02:00
parent 1de4f75572
commit 61a5fc289f
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -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