feat: agent
This commit is contained in:
parent
1de4f75572
commit
61a5fc289f
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue