diff --git a/proxmox/terraform/staging/staging.tf b/proxmox/terraform/staging/staging.tf --- a/proxmox/terraform/staging/staging.tf +++ b/proxmox/terraform/staging/staging.tf @@ -393,3 +393,26 @@ output "worker3_summary" { value = module.worker3.summary } + +module "counters0" { + source = "../modules/node" + config = local.config + vmid = 138 + hostname = "counters0" + description = "Counters server" + hypervisor = "pompidou" + cores = "4" + memory = "6096" + balloon = 2048 + networks = [{ + id = 0 + ip = "192.168.130.95" + gateway = local.config["gateway_ip"] + macaddr = "E2:6E:12:C7:3E:A4" + bridge = "vmbr443" + }] +} + +output "counters0_summary" { + value = module.counters0.summary +} diff --git a/proxmox/terraform/staging/terraform.tfstate b/proxmox/terraform/staging/terraform.tfstate --- a/proxmox/terraform/staging/terraform.tfstate +++ b/proxmox/terraform/staging/terraform.tfstate @@ -1,13 +1,17 @@ { "version": 4, "terraform_version": "0.13.6", - "serial": 147, + "serial": 150, "lineage": "e2912de8-415d-4c35-8ee5-757008306227", "outputs": { "clearly-defined_summary": { "value": "\nhostname: clearly-defined\nfqdn: clearly-defined.internal.staging.swh.network\nnetwork: ip=192.168.130.200/24,gw=192.168.130.1 macaddrs=B6:C6:2E:D3:60:B2\n", "type": "string" }, + "counters0_summary": { + "value": "\nhostname: counters0\nfqdn: counters0.internal.staging.swh.network\nnetwork: ip=192.168.130.95/24,gw=192.168.130.1 macaddrs=E2:6E:12:C7:3E:A4\n", + "type": "string" + }, "deposit_summary": { "value": "\nhostname: deposit\nfqdn: deposit.internal.staging.swh.network\nnetwork: ip=192.168.130.31/24,gw=192.168.130.1 macaddrs=9E:81:DD:58:15:3B\n", "type": "string" @@ -185,6 +189,110 @@ } ] }, + { + "module": "module.counters0", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "module.counters0.provider[\"local/telmate/proxmox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 2048, + "bios": "seabios", + "boot": "c", + "bootdisk": null, + "bridge": null, + "ci_wait": null, + "cicustom": null, + "cipassword": null, + "ciuser": "root", + "clone": "debian-buster-2020-11-06", + "clone_wait": 15, + "cores": 4, + "cpu": "host", + "desc": "Counters server", + "disk": [ + { + "backup": false, + "cache": "none", + "discard": "", + "format": "raw", + "id": 0, + "iothread": false, + "mbps": 0, + "mbps_rd": 0, + "mbps_rd_max": 0, + "mbps_wr": 0, + "mbps_wr_max": 0, + "replicate": false, + "size": "32G", + "ssd": null, + "storage": "proxmox", + "storage_type": "cephfs", + "type": "virtio" + } + ], + "disk_gb": null, + "force_create": false, + "full_clone": false, + "hastate": null, + "hotplug": "network,disk,usb", + "id": "pompidou/qemu/138", + "ipconfig0": "ip=192.168.130.95/24,gw=192.168.130.1", + "ipconfig1": "", + "ipconfig2": null, + "iso": null, + "kvm": true, + "mac": null, + "memory": 6096, + "name": "counters0", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "E2:6E:12:C7:3E:A4", + "model": "virtio", + "queues": -1, + "rate": -1, + "tag": -1 + } + ], + "nic": null, + "numa": false, + "onboot": true, + "os_network_config": null, + "os_type": "cloud-init", + "pool": null, + "preprovision": true, + "qemu_os": null, + "scsihw": null, + "searchdomain": "internal.staging.swh.network", + "serial": [], + "sockets": 1, + "ssh_forward_ip": null, + "ssh_host": "192.168.130.95", + "ssh_port": "22", + "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", + "storage": null, + "storage_type": null, + "target_node": "pompidou", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": 138 + }, + "private": "bnVsbA==" + } + ] + }, { "module": "module.deposit", "mode": "managed", @@ -1485,11 +1593,11 @@ "balloon": 1024, "bios": "seabios", "boot": "c", - "bootdisk": null, - "bridge": null, + "bootdisk": "", + "bridge": "", "ci_wait": null, - "cicustom": null, - "cipassword": null, + "cicustom": "", + "cipassword": "", "ciuser": "root", "clone": "debian-buster-2020-11-06", "clone_wait": 15, @@ -1511,24 +1619,24 @@ "mbps_wr_max": 0, "replicate": false, "size": "32G", - "ssd": null, + "ssd": false, "storage": "proxmox", "storage_type": "cephfs", "type": "virtio" } ], - "disk_gb": null, + "disk_gb": 0, "force_create": false, "full_clone": false, - "hastate": null, + "hastate": "", "hotplug": "network,disk,usb", "id": "pompidou/qemu/137", "ipconfig0": "ip=192.168.130.103/24,gw=192.168.130.1", "ipconfig1": "", - "ipconfig2": null, + "ipconfig2": "", "iso": null, "kvm": true, - "mac": null, + "mac": "", "memory": 12288, "name": "worker3", "nameserver": "192.168.100.29", @@ -1545,15 +1653,15 @@ "tag": -1 } ], - "nic": null, + "nic": "", "numa": false, "onboot": true, "os_network_config": null, "os_type": "cloud-init", - "pool": null, + "pool": "", "preprovision": true, - "qemu_os": null, - "scsihw": null, + "qemu_os": "other", + "scsihw": "virtio-scsi-pci", "searchdomain": "internal.staging.swh.network", "serial": [], "sockets": 1, @@ -1562,14 +1670,14 @@ "ssh_port": "22", "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", - "storage": null, - "storage_type": null, + "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": "", "target_node": "pompidou", "vcpus": 0, "vga": [], "vlan": -1, - "vmid": 0 + "vmid": 137 }, "private": "bnVsbA==" }