diff --git a/proxmox/terraform/.gitignore b/proxmox/terraform/.gitignore new file mode 100644 --- /dev/null +++ b/proxmox/terraform/.gitignore @@ -0,0 +1 @@ +archives/ diff --git a/proxmox/terraform/kelvingrove.tf b/proxmox/terraform/kelvingrove.tf --- a/proxmox/terraform/kelvingrove.tf +++ b/proxmox/terraform/kelvingrove.tf @@ -12,17 +12,19 @@ hostname = "kelvingrove" description = "Keycloak server" + hypervisor = "hypervisor3" + vmid = 123 cores = "4" memory = "8192" + numa = true + balloon = 0 network = { ip = "192.168.100.106" macaddr = "72:55:5E:58:01:0B" + bridge = "vmbr0" } - hypervisor = "hypervisor3" storage = { - location = "hypervisor3-ssd" + location = "proxmox" size = "32G" } - template = "template-debian-10" - } diff --git a/proxmox/terraform/modules/node/main.tf b/proxmox/terraform/modules/node/main.tf --- a/proxmox/terraform/modules/node/main.tf +++ b/proxmox/terraform/modules/node/main.tf @@ -1,7 +1,10 @@ resource "proxmox_vm_qemu" "node" { name = var.hostname desc = var.description + vmid = var.vmid + balloon = var.balloon + full_clone = false # hypervisor onto which make the vm target_node = var.hypervisor @@ -16,6 +19,7 @@ # generic setup sockets = var.sockets cores = var.cores + numa = var.numa memory = var.memory # boot machine when hypervirsor starts @@ -52,7 +56,7 @@ network { id = 0 model = "virtio" - bridge = "vmbr0" + bridge = lookup(var.network, "bridge", "") macaddr = lookup(var.network, "macaddr", "") } @@ -77,4 +81,3 @@ ] } } - diff --git a/proxmox/terraform/modules/node/variables.tf b/proxmox/terraform/modules/node/variables.tf --- a/proxmox/terraform/modules/node/variables.tf +++ b/proxmox/terraform/modules/node/variables.tf @@ -9,9 +9,8 @@ } variable "hypervisor" { - description = "Hypervisor to install the vm to (choice: orsay, hypervisor3, beaubourg)" + description = "Hypervisor to install the vm to (choice: orsay, hypervisor3, beaubourg, branly)" type = string - default = "orsay" } variable "template" { @@ -39,15 +38,33 @@ } variable "network" { - description = "staging network's ip/macaddr" + description = "staging network's ip/macaddr/bridge" type = map(string) } + +variable "vmid" { + description = "virtual machine id" + type = number + default = 0 +} + +variable "balloon" { + description = "ballooning option" + type = number + default = 0 +} + +variable "numa" { + type = bool + default = false +} + variable "storage" { description = "Storage disk location and size in the hypervisor storage" type = map(string) default = { - location = "orsay-ssd-2018" + location = "proxmox" size = "32G" } } @@ -56,4 +73,3 @@ description = "Local config to avoid duplication from the main module" type = map(string) } - diff --git a/proxmox/terraform/staging.tf b/proxmox/terraform/staging/staging.tf rename from proxmox/terraform/staging.tf rename to proxmox/terraform/staging/staging.tf --- a/proxmox/terraform/staging.tf +++ b/proxmox/terraform/staging/staging.tf @@ -5,8 +5,8 @@ provider "proxmox" { pm_tls_insecure = true - pm_api_url = "https://orsay.internal.softwareheritage.org:8006/api2/json" - # in a shell (see README): source ./setup.sh + pm_api_url = "https://beaubourg.internal.softwareheritage.org:8006/api2/json" + # in a shell (see README): source ../setup.sh } # Default configuration passed along module calls @@ -34,7 +34,10 @@ desc = "staging gateway node" # hypervisor onto which make the vm - target_node = "orsay" + target_node = "beaubourg" + vmid = 109 + balloon = 0 + full_clone = false # See init-template.md to see the template vm bootstrap clone = "template-debian-10" @@ -81,7 +84,7 @@ disk { id = 0 type = "virtio" - storage = "orsay-ssd-2018" + storage = "proxmox" storage_type = "ssd" size = "20G" } @@ -94,7 +97,7 @@ network { id = 1 model = "virtio" - bridge = "vmbr0" + bridge = "vmbr443" macaddr = "FE:95:CC:A5:EB:43" } @@ -118,40 +121,122 @@ } } -module "storage0" { - source = "./modules/node" - config = local.config +# Define the staging network gateway +# FIXME: Find a way to reuse the module "node" +# Main difference between node in module and this: +# - storage0 define 2 disks +resource "proxmox_vm_qemu" "storage0" { + name = "storage0" + desc = "swh storage services" - hostname = "storage0" - description = "swh storage services" - cores = "4" - memory = "8192" - network = { - ip = "192.168.128.2" + # hypervisor onto which make the vm + target_node = "orsay" + vmid = 114 + full_clone = false + + # See init-template.md to see the template vm bootstrap + clone = "template-debian-10" + + # linux kernel 2.6 + qemu_os = "l26" + + # generic setup + sockets = 1 + cores = 4 + memory = 8192 + balloon = 1024 + + boot = "c" + + # boot machine when hypervirsor starts + onboot = true + + #### cloud-init setup + # to actually set some information per os_type (values: ubuntu, centos, + # cloud-init). Keep this as cloud-init + os_type = "cloud-init" + + # ciuser - User name to change ssh keys and password for instead of the + # image’s configured default user. + ciuser = var.user_admin + ssh_user = var.user_admin + + # searchdomain - Sets DNS search domains for a container. + searchdomain = var.domain + + # nameserver - Sets DNS server IP address for a container. + nameserver = var.dns + + # sshkeys - public ssh keys, one per line + sshkeys = var.user_admin_ssh_public_key + + # ip to communicate for now with the prod network through louvre + ipconfig0 = "ip=192.168.128.2/24,gw=192.168.128.1" + + disk { + id = 0 + type = "virtio" + storage = "orsay-ssd-2018" + storage_type = "ssd" + size = "32G" + } + disk { + id = 1 + type = "virtio" + storage = "orsay-ssd-2018" + storage_type = "ssd" + size = "512G" + } + + network { + id = 0 + model = "virtio" + bridge = "vmbr443" macaddr = "CA:73:7F:ED:F9:01" } -} -output "storage0_summary" { - value = module.storage0.summary + # Delegate to puppet at the end of the provisioning the software setup + provisioner "remote-exec" { + inline = [ + "sed -i 's/127.0.1.1/192.168.128.2}/g' /etc/hosts", + "puppet agent --server ${var.puppet_master} --environment=${var.puppet_environment} --waitforcert 60 --test || echo 'Node provisionned!'", + ] + connection { + type = "ssh" + user = "root" + host = "192.168.128.2" + } + } + + lifecycle { + ignore_changes = [ + bootdisk, + scsihw, + ] + } } module "db0" { - source = "./modules/node" + source = "../modules/node" config = local.config + hypervisor = "orsay" + vmid = 115 hostname = "db0" description = "Node to host storage/indexer/scheduler dbs" cores = "4" memory = "16384" + balloon = 1024 network = { ip = "192.168.128.3" macaddr = "3A:65:31:7C:24:17" + bridge = "vmbr443" } storage = { location = "orsay-ssd-2018" - size = "100G" + size = "400G" } + } output "db0_summary" { @@ -159,16 +244,20 @@ } module "scheduler0" { - source = "./modules/node" + source = "../modules/node" config = local.config + vmid = 116 hostname = "scheduler0" description = "Scheduler api services" + hypervisor = "beaubourg" cores = "4" - memory = "16384" + memory = "8192" + balloon = 1024 network = { ip = "192.168.128.4" macaddr = "92:02:7E:D0:B9:36" + bridge = "vmbr443" } } @@ -177,16 +266,20 @@ } module "worker0" { - source = "./modules/node" + source = "../modules/node" config = local.config + vmid = 117 hostname = "worker0" description = "Loader/lister service node" + hypervisor = "beaubourg" cores = "4" - memory = "16384" + memory = "12288" + balloon = 1024 network = { ip = "192.168.128.5" macaddr = "72:D9:03:46:B1:47" + bridge = "vmb443" } } @@ -195,16 +288,20 @@ } module "worker1" { - source = "./modules/node" + source = "../modules/node" config = local.config + vmid = 118 hostname = "worker1" description = "Loader/lister service node" + hypervisor = "beaubourg" cores = "4" - memory = "16384" + memory = "12288" + balloon = 1024 network = { ip = "192.168.128.6" macaddr = "D6:A9:6F:02:E3:66" + bridge = "vmbr443" } } @@ -213,16 +310,20 @@ } module "webapp" { - source = "./modules/node" + source = "../modules/node" config = local.config + vmid = 119 hostname = "webapp" description = "Archive/Webapp service node" + hypervisor = "branly" cores = "4" memory = "16384" + balloon = 1024 network = { ip = "192.168.128.8" macaddr = "1A:00:39:95:D4:5F" + bridge = "vmbr443" } } @@ -231,16 +332,20 @@ } module "deposit" { - source = "./modules/node" + source = "../modules/node" config = local.config + vmid = 120 hostname = "deposit" description = "Deposit service node" + hypervisor = "beaubourg" cores = "4" - memory = "16384" + memory = "8192" + balloon = 1024 network = { ip = "192.168.128.7" macaddr = "9E:81:DD:58:15:3B" + bridge = "vmbr443" } } @@ -249,16 +354,20 @@ } module "vault" { - source = "./modules/node" + source = "../modules/node" config = local.config + vmid = 121 hostname = "vault" description = "Vault services node" + hypervisor = "beaubourg" cores = "4" - memory = "16384" + memory = "8192" + balloon = 1024 network = { ip = "192.168.128.9" macaddr = "16:15:1C:79:CB:DB" + bridge = "vmbr443" } } @@ -267,16 +376,20 @@ } module "journal0" { - source = "./modules/node" + source = "../modules/node" config = local.config + vmid = 122 hostname = "journal0" description = "Journal services node" + hypervisor = "beaubourg" cores = "4" - memory = "16384" + memory = "12288" + balloon = 1024 network = { ip = "192.168.128.10" macaddr = "1E:98:C2:66:BF:33" + bridge = "vmbr443" } } @@ -285,20 +398,23 @@ } module "worker2" { - source = "./modules/node" + source = "../modules/node" config = local.config + vmid = 112 hostname = "worker2" description = "Loader/lister service node" + hypervisor = "branly" cores = "4" - memory = "16384" + memory = "12288" + balloon = 1024 network = { ip = "192.168.128.11" macaddr = "AA:57:27:51:75:18" + bridge = "vmbr443" } } output "worker2_summary" { value = module.worker2.summary } - diff --git a/proxmox/terraform/staging/terraform.tfstate b/proxmox/terraform/staging/terraform.tfstate new file mode 100644 --- /dev/null +++ b/proxmox/terraform/staging/terraform.tfstate @@ -0,0 +1,1211 @@ +{ + "version": 4, + "terraform_version": "0.12.28", + "serial": 106, + "lineage": "e2912de8-415d-4c35-8ee5-757008306227", + "outputs": { + "db0_summary": { + "value": "\nhostname: db0\nfqdn: db0.internal.staging.swh.network\nnetwork: ip=192.168.128.3/24,gw=192.168.128.1 macaddrs=3A:65:31:7C:24:17\n", + "type": "string" + }, + "deposit_summary": { + "value": "\nhostname: deposit\nfqdn: deposit.internal.staging.swh.network\nnetwork: ip=192.168.128.7/24,gw=192.168.128.1 macaddrs=9E:81:DD:58:15:3B\n", + "type": "string" + }, + "journal0_summary": { + "value": "\nhostname: journal0\nfqdn: journal0.internal.staging.swh.network\nnetwork: ip=192.168.128.10/24,gw=192.168.128.1 macaddrs=1E:98:C2:66:BF:33\n", + "type": "string" + }, + "scheduler0_summary": { + "value": "\nhostname: scheduler0\nfqdn: scheduler0.internal.staging.swh.network\nnetwork: ip=192.168.128.4/24,gw=192.168.128.1 macaddrs=92:02:7E:D0:B9:36\n", + "type": "string" + }, + "storage0_summary": { + "value": "\nhostname: storage0\nfqdn: storage0.internal.staging.swh.network\nnetwork: ip=192.168.128.2/24,gw=192.168.128.1 macaddrs=CA:73:7F:ED:F9:01\n", + "type": "string" + }, + "vault_summary": { + "value": "\nhostname: vault\nfqdn: vault.internal.staging.swh.network\nnetwork: ip=192.168.128.9/24,gw=192.168.128.1 macaddrs=16:15:1C:79:CB:DB\n", + "type": "string" + }, + "webapp_summary": { + "value": "\nhostname: webapp\nfqdn: webapp.internal.staging.swh.network\nnetwork: ip=192.168.128.8/24,gw=192.168.128.1 macaddrs=1A:00:39:95:D4:5F\n", + "type": "string" + }, + "worker0_summary": { + "value": "\nhostname: worker0\nfqdn: worker0.internal.staging.swh.network\nnetwork: ip=192.168.128.5/24,gw=192.168.128.1 macaddrs=72:D9:03:46:B1:47\n", + "type": "string" + }, + "worker1_summary": { + "value": "\nhostname: worker1\nfqdn: worker1.internal.staging.swh.network\nnetwork: ip=192.168.128.6/24,gw=192.168.128.1 macaddrs=D6:A9:6F:02:E3:66\n", + "type": "string" + }, + "worker2_summary": { + "value": "\nhostname: worker2\nfqdn: worker2.internal.staging.swh.network\nnetwork: ip=192.168.128.11/24,gw=192.168.128.1 macaddrs=AA:57:27:51:75:18\n", + "type": "string" + } + }, + "resources": [ + { + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "gateway", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 0, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 1, + "cpu": "host", + "desc": "staging gateway node", + "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": "20G", + "ssd": false, + "storage": "proxmox", + "storage_type": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "beaubourg/qemu/109", + "ipconfig0": "ip=192.168.100.125/24,gw=192.168.100.1", + "ipconfig1": "ip=192.168.128.1/24", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 1024, + "name": "gateway", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr0", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "6E:ED:EF:EB:3C:AA", + "model": "virtio", + "queues": -1, + "rate": -1, + "tag": -1 + }, + { + "bridge": "vmbr443", + "firewall": false, + "id": 1, + "link_down": false, + "macaddr": "FE:95:CC:A5:EB:43", + "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": 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\n\n", + "storage": "", + "storage_type": "", + "target_node": "beaubourg", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + }, + { + "module": "module.webapp", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 4, + "cpu": "host", + "desc": "Archive/Webapp service node", + "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": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "branly/qemu/119", + "ipconfig0": "ip=192.168.128.8/24,gw=192.168.128.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 16384, + "name": "webapp", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "1A:00:39:95:D4:5F", + "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": 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\n\n", + "storage": "", + "storage_type": "", + "target_node": "branly", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + }, + { + "module": "module.worker1", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 4, + "cpu": "host", + "desc": "Loader/lister service node", + "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": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "beaubourg/qemu/118", + "ipconfig0": "ip=192.168.128.6/24,gw=192.168.128.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 12288, + "name": "worker1", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "D6:A9:6F:02:E3:66", + "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": 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\n\n", + "storage": "", + "storage_type": "", + "target_node": "beaubourg", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + }, + { + "module": "module.journal0", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 4, + "cpu": "host", + "desc": "Journal services node", + "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": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "beaubourg/qemu/122", + "ipconfig0": "ip=192.168.128.10/24,gw=192.168.128.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 12288, + "name": "journal0", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "1E:98:C2:66:BF:33", + "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": 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\n\n", + "storage": "", + "storage_type": "", + "target_node": "beaubourg", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + }, + { + "module": "module.worker2", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 4, + "cpu": "host", + "desc": "Loader/lister service node", + "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": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "branly/qemu/112", + "ipconfig0": "ip=192.168.128.11/24,gw=192.168.128.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 12288, + "name": "worker2", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "AA:57:27:51:75:18", + "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": 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\n\n", + "storage": "", + "storage_type": "", + "target_node": "branly", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + }, + { + "module": "module.vault", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 4, + "cpu": "host", + "desc": "Vault services node", + "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": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "beaubourg/qemu/121", + "ipconfig0": "ip=192.168.128.9/24,gw=192.168.128.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 4096, + "name": "vault", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "16:15:1C:79:CB:DB", + "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": 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\n\n", + "storage": "", + "storage_type": "", + "target_node": "beaubourg", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + }, + { + "module": "module.worker0", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 4, + "cpu": "host", + "desc": "Loader/lister service node", + "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": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "beaubourg/qemu/117", + "ipconfig0": "ip=192.168.128.5/24,gw=192.168.128.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 12288, + "name": "worker0", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "72:D9:03:46:B1:47", + "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": 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\n\n", + "storage": "", + "storage_type": "", + "target_node": "beaubourg", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + }, + { + "module": "module.deposit", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 4, + "cpu": "host", + "desc": "Deposit service node", + "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": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "beaubourg/qemu/120", + "ipconfig0": "ip=192.168.128.7/24,gw=192.168.128.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 8192, + "name": "deposit", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "9E:81:DD:58:15:3B", + "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": 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\n\n", + "storage": "", + "storage_type": "", + "target_node": "beaubourg", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + }, + { + "module": "module.scheduler0", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 4, + "cpu": "host", + "desc": "Scheduler api services", + "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": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "beaubourg/qemu/116", + "ipconfig0": "ip=192.168.128.4/24,gw=192.168.128.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 8192, + "name": "scheduler0", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "92:02:7E:D0:B9:36", + "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": 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\n\n", + "storage": "", + "storage_type": "", + "target_node": "beaubourg", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + }, + { + "module": "module.db0", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 4, + "cpu": "host", + "desc": "Node to host storage/indexer/scheduler dbs", + "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": "400G", + "ssd": false, + "storage": "orsay-ssd-2018", + "storage_type": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "orsay/qemu/115", + "ipconfig0": "ip=192.168.128.3/24,gw=192.168.128.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 16384, + "name": "db0", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "3A:65:31:7C:24:17", + "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": 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\n\n\n\n", + "storage": "", + "storage_type": "", + "target_node": "orsay", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + }, + { + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "storage0", + "provider": "provider.proxmox", + "instances": [ + { + "schema_version": 0, + "attributes": { + "agent": 0, + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "virtio0", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "template-debian-10", + "clone_wait": null, + "cores": 4, + "cpu": "host", + "desc": "swh storage services", + "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": "orsay-ssd-2018", + "storage_type": "ssd", + "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": "512G", + "ssd": false, + "storage": "orsay-ssd-2018", + "storage_type": "ssd", + "type": "virtio" + } + ], + "disk_gb": 0, + "force_create": false, + "full_clone": false, + "hastate": "", + "hotplug": "network,disk,usb", + "id": "orsay/qemu/114", + "ipconfig0": "ip=192.168.128.2/24,gw=192.168.128.1", + "ipconfig1": "", + "ipconfig2": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 8192, + "name": "storage0", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "id": 0, + "link_down": false, + "macaddr": "CA:73:7F:ED:F9:01", + "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": 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\n\n", + "storage": "", + "storage_type": "", + "target_node": "orsay", + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": null + } + } + ] + } + ] +} diff --git a/proxmox/terraform/staging/variables.tf b/proxmox/terraform/staging/variables.tf new file mode 120000 --- /dev/null +++ b/proxmox/terraform/staging/variables.tf @@ -0,0 +1 @@ +../variables.tf \ No newline at end of file diff --git a/proxmox/terraform/zookeeper.tf b/proxmox/terraform/zookeeper.tf --- a/proxmox/terraform/zookeeper.tf +++ b/proxmox/terraform/zookeeper.tf @@ -12,17 +12,18 @@ hostname = "zookeeper1" description = "Zookeeper server" + hypervisor = "hypervisor3" + vmid = 125 cores = "2" memory = "4096" network = { ip = "192.168.100.131" + bridge = "vmbr0" } - hypervisor = "hypervisor3" storage = { - location = "hypervisor3-ssd" + location = "proxmox" size = "32G" } - template = "template-debian-10" } module "zookeeper2" { @@ -39,17 +40,18 @@ hostname = "zookeeper2" description = "Zookeeper server" + hypervisor = "branly" + vmid = 124 cores = "2" memory = "4096" network = { ip = "192.168.100.132" + bridge = "vmbr0" } - hypervisor = "hypervisor3" storage = { - location = "hypervisor3-ssd" + location = "proxmox" size = "32G" } - template = "template-debian-10" } module "zookeeper3" { @@ -66,15 +68,16 @@ hostname = "zookeeper3" description = "Zookeeper server" + hypervisor = "beaubourg" + vmid = 101 cores = "2" memory = "4096" network = { ip = "192.168.100.133" + bridge = "vmbr0" } - hypervisor = "hypervisor3" storage = { - location = "hypervisor3-ssd" + location = "proxmox" size = "32G" } - template = "template-debian-10" }