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 @@ -247,3 +247,28 @@ output "rp0_summary" { value = module.rp0.summary } + + +module "search-esnode0" { + source = "../modules/node" + config = local.config + hypervisor = "branly" + + vmid = 130 + hostname = "search-esnode0" + description = "Node to host the elasticsearch instance" + cores = "2" + memory = "16834" + balloon = 1024 + networks = [{ + id = 0 + ip = "192.168.130.80" + gateway = local.config["gateway_ip"] + macaddr = "96:74:49:BD:B5:08" + bridge = "vmbr443" + }] +} + +output "search-esnode0_summary" { + value = module.search-esnode0.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,7 +1,7 @@ { "version": 4, "terraform_version": "0.13.5", - "serial": 121, + "serial": 125, "lineage": "e2912de8-415d-4c35-8ee5-757008306227", "outputs": { "deposit_summary": { @@ -20,6 +20,10 @@ "value": "\nhostname: scheduler0\nfqdn: scheduler0.internal.staging.swh.network\nnetwork: ip=192.168.130.50/24,gw=192.168.130.1 macaddrs=92:02:7E:D0:B9:36\n", "type": "string" }, + "search-esnode0_summary": { + "value": "\nhostname: search-esnode0\nfqdn: search-esnode0.internal.staging.swh.network\nnetwork: ip=192.168.130.80/24,gw=192.168.130.1 macaddrs=96:74:49:BD:B5:08\n", + "type": "string" + }, "vault_summary": { "value": "\nhostname: vault\nfqdn: vault.internal.staging.swh.network\nnetwork: ip=192.168.130.60/24,gw=192.168.130.1 macaddrs=16:15:1C:79:CB:DB\n", "type": "string" @@ -223,7 +227,7 @@ "iso": null, "kvm": true, "mac": "", - "memory": 12288, + "memory": 20000, "name": "journal0", "nameserver": "192.168.100.29", "network": [ @@ -283,11 +287,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, @@ -309,24 +313,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": "branly/qemu/129", "ipconfig0": "ip=192.168.130.20/24,gw=192.168.130.1", "ipconfig1": "", - "ipconfig2": null, + "ipconfig2": "", "iso": null, "kvm": true, - "mac": null, + "mac": "", "memory": 2048, "name": "rp0", "nameserver": "192.168.100.29", @@ -343,15 +347,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, @@ -360,9 +364,9 @@ "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": "branly", "vcpus": 0, "vga": [], @@ -477,6 +481,110 @@ } ] }, + { + "module": "module.search-esnode0", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "module.search-esnode0.provider[\"local/telmate/proxmox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "debian-buster-2020-11-06", + "clone_wait": 15, + "cores": 2, + "cpu": "host", + "desc": "Node to host the elasticsearch instance", + "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": false, + "storage": "proxmox", + "storage_type": "cephfs", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "branly/qemu/130", + "ipconfig0": "ip=192.168.130.80/24,gw=192.168.130.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 16834, + "name": "search-esnode0", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "96:74:49:BD:B5:08", + "model": "virtio", + "queues": -1, + "rate": -1, + "tag": -1 + } + ], + "nic": "", + "numa": false, + "onboot": true, + "os_network_config": null, + "os_type": "cloud-init", + "pool": "", + "preprovision": true, + "qemu_os": "other", + "scsihw": "virtio-scsi-pci", + "searchdomain": "internal.staging.swh.network", + "serial": [], + "sockets": 1, + "ssh_forward_ip": null, + "ssh_host": "192.168.130.80", + "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", + "storage": "", + "storage_type": "", + "target_node": "branly", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": 130 + }, + "private": "bnVsbA==" + } + ] + }, { "module": "module.vault", "mode": "managed",