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 @@ -307,3 +307,39 @@ output "search0_summary" { value = module.search0.summary } + + +module "clearly-defined" { + source = "../modules/node" + config = local.config + hypervisor = "branly" + + vmid = 132 + hostname = "clearly-defined" + description = "Node to host development for clearly defined" + cores = "2" + memory = "8192" + balloon = 1024 + networks = [{ + id = 0 + ip = "192.168.130.200" + gateway = local.config["gateway_ip"] + macaddr = "B6:C6:2E:D3:60:B2" + bridge = "vmbr443" + }] + storages = [{ + id = 0 + storage = "proxmox" + size = "32G" + storage_type = "cephfs" + }, { + id = 1 + storage = "proxmox" + size = "100G" + storage_type = "cephfs" + }] +} + +output "clearly-defined_summary" { + value = module.clearly-defined.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,9 +1,13 @@ { "version": 4, "terraform_version": "0.13.5", - "serial": 135, + "serial": 137, "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" + }, "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" @@ -50,6 +54,129 @@ } }, "resources": [ + { + "module": "module.clearly-defined", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "module.clearly-defined.provider[\"local/telmate/proxmox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "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": 2, + "cpu": "host", + "desc": "Node to host development for clearly defined", + "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" + }, + { + "backup": false, + "cache": "none", + "discard": "", + "format": "raw", + "id": 1, + "iothread": false, + "mbps": 0, + "mbps_rd": 0, + "mbps_rd_max": 0, + "mbps_wr": 0, + "mbps_wr_max": 0, + "replicate": false, + "size": "100G", + "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": "branly/qemu/132", + "ipconfig0": "ip=192.168.130.200/24,gw=192.168.130.1", + "ipconfig1": "", + "ipconfig2": null, + "iso": null, + "kvm": true, + "mac": null, + "memory": 8192, + "name": "clearly-defined", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "B6:C6:2E:D3:60:B2", + "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.200", + "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": "branly", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": 0 + }, + "private": "bnVsbA==" + } + ] + }, { "module": "module.deposit", "mode": "managed", @@ -595,7 +722,7 @@ "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\n\n\n\n\n", + "sshkeys": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVKCfpeIMg7GS3Pk03ZAcBWAeDZ+AvWk2k/pPY0z8MJ3YAbqZkRtSK7yaDgJV6Gro7nn/TxdJLo2jEzzWvlC8d8AEzhZPy5Z/qfVVjqBTBM4H5+e+TItAHFfaY5+0WvIahxcfsfaq70MWfpJhszAah3ThJ4mqzYaw+dkr42+a7Gx3Ygpb/m2dpnFnxvXdcuAJYStmHKU5AWGWWM+Fm50/fdMqUfNd8MbKhkJt5ihXQmZWMOt7ls4N8i5NZWnS9YSWow8X/ENOEqCRN9TyRkc+pPS0w9DNi0BCsWvSRJOkyvQ6caEnKWlNoywCmM1AlIQD3k4RUgRWe0vqg/UKPpH3Z root@terraform\n\n\n\n\n\n", "storage": "", "storage_type": "", "target_node": "branly",