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 }))}
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue