{ "version": 4, "terraform_version": "1.14.6", "serial": 10, "lineage": "5e0106eb-b596-1031-566f-05aef9d467a2", "outputs": {}, "resources": [ { "mode": "managed", "type": "proxmox_virtual_environment_file", "name": "agent_snippet", "provider": "provider[\"registry.terraform.io/bpg/proxmox\"]", "instances": [ { "schema_version": 0, "attributes": { "content_type": "snippets", "datastore_id": "local", "file_mode": null, "file_modification_date": null, "file_name": "cloud-init-base.yaml", "file_size": null, "file_tag": null, "id": "local:snippets/cloud-init-base.yaml", "node_name": "px", "overwrite": true, "source_file": [], "source_raw": [ { "data": "#cloud-config\n\nssh_pwauth: true\npackage_update: true\npackage_upgrade: true\n\nusers:\n - default\n - name: ubuntu\n sudo: ALL=(ALL) NOPASSWD:ALL\n lock_passwd: false\n ssh_authorized_keys:\n - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPiX5bOEXfX3AvwstdAyYYHgSyGDF12NzOBCwfNPQVgo terraform@lxc\n\nssh_pwauth: true\nchpasswd: # если нужен пароль, не рекомендуется \n list: |\n ubuntu:ubuntu\n expire: false\n\npackages:\n - qemu-guest-agent\n - vim # здесь можно перечислить любые нужные пакеты\n\nruncmd:\n - systemctl enable qemu-guest-agent\n - systemctl start qemu-guest-agent\n - echo \"Guest agent installed\" \u003e /var/log/guest-agent.log\n", "file_name": "cloud-init-base.yaml", "resize": 0 } ], "timeout_upload": 1800 }, "sensitive_attributes": [], "identity_schema_version": 0, "private": "bnVsbA==" } ] }, { "mode": "managed", "type": "proxmox_virtual_environment_vm", "name": "ubuntu_vm", "provider": "provider[\"registry.terraform.io/bpg/proxmox\"]", "instances": [ { "index_key": 0, "schema_version": 0, "attributes": { "acpi": true, "agent": [ { "enabled": true, "timeout": "15m", "trim": false, "type": "virtio", "wait_for_ip": [] } ], "amd_sev": [], "audio_device": [], "bios": "seabios", "boot_order": [ "virtio0", "net0" ], "cdrom": [], "clone": [], "cpu": [ { "affinity": "", "architecture": "", "cores": 2, "flags": null, "hotplugged": 0, "limit": 0, "numa": false, "sockets": 1, "type": "qemu64", "units": 0 } ], "delete_unreferenced_disks_on_destroy": true, "description": "", "disk": [ { "aio": "io_uring", "backup": true, "cache": "none", "datastore_id": "local-zfs", "discard": "on", "file_format": "raw", "file_id": "local:iso/jammy-server-cloudimg-amd64.img", "import_from": "", "interface": "virtio0", "iothread": true, "path_in_datastore": "vm-2002-disk-0", "replicate": true, "serial": "", "size": 20, "speed": [], "ssd": false } ], "efi_disk": [], "hook_script_file_id": null, "hostpci": [], "hotplug": null, "id": "2002", "initialization": [ { "datastore_id": "local", "dns": [ { "domain": "", "servers": [ "8.8.8.8", "1.1.1.1" ] } ], "file_format": "qcow2", "interface": "ide2", "ip_config": [ { "ipv4": [ { "address": "10.10.10.6/24", "gateway": "10.10.10.1" } ], "ipv6": [] } ], "meta_data_file_id": "", "network_data_file_id": "", "type": "", "user_account": [], "user_data_file_id": "local:snippets/cloud-init-base.yaml", "vendor_data_file_id": "" } ], "ipv4_addresses": [ [ "127.0.0.1" ], [ "10.10.10.6" ] ], "ipv6_addresses": [ [ "::1" ], [ "fe80::be24:11ff:fefa:41db" ] ], "keyboard_layout": "en-us", "kvm_arguments": "", "mac_addresses": [ "00:00:00:00:00:00", "BC:24:11:FA:41:DB" ], "machine": "", "memory": [ { "dedicated": 1024, "floating": 0, "hugepages": "", "keep_hugepages": false, "shared": 0 } ], "migrate": false, "name": "tf-ubuntu-2002", "network_device": [ { "bridge": "vmbr1", "disconnected": false, "enabled": true, "firewall": false, "mac_address": "BC:24:11:FA:41:DB", "model": "virtio", "mtu": 0, "queues": 0, "rate_limit": 0, "trunks": "", "vlan_id": 0 } ], "network_interface_names": [ "lo", "eth0" ], "node_name": "px", "numa": [], "on_boot": true, "operating_system": [], "pool_id": "", "protection": false, "purge_on_destroy": true, "reboot": false, "reboot_after_update": true, "rng": [], "scsi_hardware": "virtio-scsi-pci", "serial_device": [], "smbios": [], "started": true, "startup": [], "stop_on_destroy": true, "tablet_device": true, "tags": null, "template": false, "timeout_clone": 1800, "timeout_create": 1800, "timeout_migrate": 1800, "timeout_move_disk": 1800, "timeout_reboot": 1800, "timeout_shutdown_vm": 1800, "timeout_start_vm": 1800, "timeout_stop_vm": 300, "tpm_state": [], "usb": [], "vga": [], "virtiofs": [], "vm_id": 2002, "watchdog": [] }, "sensitive_attributes": [], "identity_schema_version": 0, "private": "bnVsbA==", "dependencies": [ "proxmox_virtual_environment_file.agent_snippet" ] } ] } ], "check_results": null }