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 @@ -492,3 +492,40 @@ output "poc-rancher-sw1_summary" { value = module.poc-rancher-sw1.summary } + +module "maven-exporter0" { + source = "../modules/node" + template = "debian-bullseye-11.0-2021-09-09" # otherwise to use more recent template + vmid = 122 + config = local.config + hostname = "maven-exporter0" + description = "Maven index exporter to run containers and expose export.fld files" + hypervisor = "pompidou" + sockets = "1" + cores = "4" + onboot = true + + memory = "4096" + balloon = "1024" + + networks = [{ + id = 0 + ip = "192.168.130.70" + gateway = local.config["gateway_ip"] + macaddr = "36:86:F6:F9:2A:5D" + bridge = "vmbr443" + }] + + storages = [{ + storage = "proxmox" + size = "20G" + }, { + storage = "proxmox" + size = "50G" + } + ] +} + +output "maven-exporter0_summary" { + value = module.maven-exporter0.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": "1.1.8", - "serial": 194, + "serial": 197, "lineage": "e2912de8-415d-4c35-8ee5-757008306227", "outputs": { "counters0_summary": { @@ -12,6 +12,10 @@ "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\nvmid: 120\n", "type": "string" }, + "maven-exporter0_summary": { + "value": "\nhostname: maven-exporter0\nfqdn: maven-exporter0.internal.staging.swh.network\nnetwork: ip=192.168.130.70/24,gw=192.168.130.1 macaddrs=36:86:F6:F9:2A:5D\nvmid: 122\n", + "type": "string" + }, "mirror-tests_summary": { "value": "\nhostname: mirror-test\nfqdn: mirror-test.internal.staging.swh.network\nnetwork: ip=192.168.130.160/24,gw=192.168.130.1 macaddrs=E6:3C:8A:B7:26:5D\nvmid: 132\n", "type": "string" @@ -328,6 +332,152 @@ } ] }, + { + "module": "module.maven-exporter0", + "mode": "managed", + "type": "proxmox_vm_qemu", + "name": "node", + "provider": "module.maven-exporter0.provider[\"registry.terraform.io/telmate/proxmox\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "additional_wait": 0, + "agent": 0, + "args": "", + "balloon": 1024, + "bios": "seabios", + "boot": "c", + "bootdisk": "", + "bridge": "", + "ci_wait": null, + "cicustom": "", + "cipassword": "", + "ciuser": "root", + "clone": "debian-bullseye-11.0-2021-09-09", + "clone_wait": 0, + "cloudinit_cdrom_storage": null, + "cores": 4, + "cpu": "kvm64", + "default_ipv4_address": null, + "define_connection_info": true, + "desc": "Maven index exporter to run containers and expose export.fld files", + "disk": [ + { + "backup": 0, + "cache": "none", + "discard": "", + "file": "base-10005-disk-0/vm-122-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": "20G", + "slot": 0, + "ssd": 0, + "storage": "proxmox", + "storage_type": "rbd", + "type": "virtio", + "volume": "proxmox:base-10005-disk-0/vm-122-disk-0" + }, + { + "backup": 0, + "cache": "none", + "discard": "", + "file": "vm-122-disk-1", + "format": "raw", + "iothread": 0, + "mbps": 0, + "mbps_rd": 0, + "mbps_rd_max": 0, + "mbps_wr": 0, + "mbps_wr_max": 0, + "media": "", + "replicate": 0, + "size": "50G", + "slot": 1, + "ssd": 0, + "storage": "proxmox", + "storage_type": "rbd", + "type": "virtio", + "volume": "proxmox:vm-122-disk-1" + } + ], + "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": "pompidou/qemu/122", + "ipconfig0": "ip=192.168.130.70/24,gw=192.168.130.1", + "ipconfig1": "", + "ipconfig2": "", + "ipconfig3": "", + "ipconfig4": "", + "ipconfig5": "", + "iso": null, + "kvm": true, + "mac": "", + "memory": 4096, + "name": "maven-exporter0", + "nameserver": "192.168.100.29", + "network": [ + { + "bridge": "vmbr443", + "firewall": false, + "link_down": false, + "macaddr": "36:86:F6:F9:2A:5D", + "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.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", + "storage": "", + "storage_type": "", + "tablet": true, + "tags": "", + "target_node": "pompidou", + "timeouts": null, + "unused_disk": [], + "vcpus": 0, + "vga": [], + "vlan": -1, + "vmid": 122 + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlZmF1bHQiOjMwMDAwMDAwMDAwMCwiZGVsZXRlIjoxODAwMDAwMDAwMDAsInJlYWQiOjE4MDAwMDAwMDAwMCwidXBkYXRlIjoxODAwMDAwMDAwMDB9fQ==" + } + ] + }, { "module": "module.mirror-test", "mode": "managed",