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 }))} content: ${base64encode(jsonencode({ name : each.value.name, domain : each.value.domain }))}
ssh_authorized_keys: ${jsonencode(var.ssh_keys)} ssh_authorized_keys: ${jsonencode(var.ssh_keys)}
packages: packages:
- htop
- git
- qemu-guest-agent - qemu-guest-agent
run_cmd: power_state:
- systemctl enable --now qemu-guest-agent mode: reboot
EOF EOF
file_name = "${each.value.name}.ingress.tjo.cloud.userconfig.yaml" file_name = "${each.value.name}.ingress.tjo.cloud.userconfig.yaml"
} }
@ -80,6 +78,10 @@ resource "proxmox_virtual_environment_vm" "nodes" {
type = "l26" type = "l26"
} }
agent {
enabled = true
}
network_device { network_device {
bridge = each.value.bridge bridge = each.value.bridge
mac_address = each.value.mac_address mac_address = each.value.mac_address