diff --git a/proxmox/terraform/admin/admin.tf b/proxmox/terraform/admin/admin.tf --- a/proxmox/terraform/admin/admin.tf +++ b/proxmox/terraform/admin/admin.tf @@ -94,3 +94,29 @@ output "dali_summary" { value = module.dali.summary } + + +module "grafana0" { + source = "../modules/node" + config = local.config + + template = "debian-bullseye-11.2-2022-01-03" + hostname = "grafana0" + description = "Grafana server" + hypervisor = "branly" + vmid = 108 + cores = 4 + memory = 4096 + balloon = 2048 + networks = [{ + id = 0 + ip = "192.168.50.30" + gateway = local.config["gateway_ip"] + macaddr = "B2:CB:D9:09:D3:3B" + bridge = local.config["vlan"] + }] +} + +output "grafana0_summary" { + value = module.grafana0.summary +} diff --git a/proxmox/terraform/admin/terraform.tfstate b/proxmox/terraform/admin/terraform.tfstate --- a/proxmox/terraform/admin/terraform.tfstate +++ b/proxmox/terraform/admin/terraform.tfstate @@ -1,12 +1,16 @@ { "version": 4, "terraform_version": "1.1.3", - "serial": 19, + "serial": 21, "lineage": "7eeb2152-4139-2f8a-fd0a-ac63e5d93d90", "outputs": { "dali_summary": { "value": "\nhostname: dali\nfqdn: dali.internal.admin.swh.network\nnetwork: ip=192.168.50.50/24,gw=192.168.50.1 macaddrs=C2:7C:85:D0:E8:7C\n", "type": "string" + }, + "grafana0_summary": { + "value": "\nhostname: grafana0\nfqdn: grafana0.internal.admin.swh.network\nnetwork: ip=192.168.50.30/24,gw=192.168.50.1 macaddrs=B2:CB:D9:09:D3:3B\n", + "type": "string" } }, "resources": [ @@ -286,6 +290,130 @@ } ] }, + { + "module": "module.grafana0", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "module.grafana0.provider[\"registry.terraform.io/telmate/proxmox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "additional_wait": 0, + "agent": 0, + "args": "", + "balloon": 2048, + "bios": "seabios", + "boot": "c", + "bootdisk": "", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "debian-bullseye-11.2-2022-01-03", + "clone_wait": 0, + "cloudinit_cdrom_storage": null, + "cores": 4, + "cpu": "kvm64", + "default_ipv4_address": null, + "define_connection_info": true, + "desc": "Grafana server", + "disk": [ + { + "backup": 0, + "cache": "none", + "discard": "", + "file": "base-10006-disk-0/vm-108-disk-0", + "format": "raw", + "iothread": 0, + "mbps": 0, + "mbps_rd": 0, + "mbps_rd_max": 0, + "mbps_wr": 0, + "mbps_wr_max": 0, + "media": "", + "replicate": 0, + "size": "32G", + "slot": 0, + "ssd": 0, + "storage": "proxmox", + "storage_type": "rbd", + "type": "virtio", + "volume": "proxmox:base-10006-disk-0/vm-108-disk-0" + } + ], + "disk_gb": 0, + "force_create": false, + "force_recreate_on_change_of": null, + "full_clone": false, + "guest_agent_ready_timeout": 100, + "hagroup": "", + "hastate": "", + "hotplug": "network,disk,usb", + "id": "branly/qemu/108", + "ipconfig0": "ip=192.168.50.30/24,gw=192.168.50.1", + "ipconfig1": "", + "ipconfig2": "", + "ipconfig3": "", + "ipconfig4": "", + "ipconfig5": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 4096, + "name": "grafana0", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr442", + "firewall": false, + "link_down": false, + "macaddr": "B2:CB:D9:09:D3:3B", + "model": "virtio", + "queues": 0, + "rate": 0, + "tag": -1 + } + ], + "nic": "", + "numa": false, + "onboot": true, + "oncreate": true, + "os_network_config": null, + "os_type": "cloud-init", + "pool": "", + "preprovision": true, + "qemu_os": "other", + "reboot_required": false, + "scsihw": "virtio-scsi-pci", + "searchdomain": "internal.admin.swh.network", + "serial": [], + "sockets": 1, + "ssh_forward_ip": null, + "ssh_host": null, + "ssh_port": null, + "ssh_private_key": null, + "ssh_user": "root", + "sshkeys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVKCfpeIMg7GS3Pk03ZAcBWAeDZ+AvWk2k/pPY0z8MJ3YAbqZkRtSK7yaDgJV6Gro7nn/TxdJLo2jEzzWvlC8d8AEzhZPy5Z/qfVVjqBTBM4H5+e+TItAHFfaY5+0WvIahxcfsfaq70MWfpJhszAah3ThJ4mqzYaw+dkr42+a7Gx3Ygpb/m2dpnFnxvXdcuAJYStmHKU5AWGWWM+Fm50/fdMqUfNd8MbKhkJt5ihXQmZWMOt7ls4N8i5NZWnS9YSWow8X/ENOEqCRN9TyRkc+pPS0w9DNi0BCsWvSRJOkyvQ6caEnKWlNoywCmM1AlIQD3k4RUgRWe0vqg/UKPpH3Z root@terraform\n", + "storage": "", + "storage_type": "", + "tablet": true, + "tags": "", + "target_node": "branly", + "timeouts": null, + "unused_disk": [], + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": 108 + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlZmF1bHQiOjMwMDAwMDAwMDAwMCwiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjE4MDAwMDAwMDAwMCwidXBkYXRlIjoxODAwMDAwMDAwMDB9fQ==" + } + ] + }, { "module": "module.rp1", "mode": "managed",