# SPDX-FileCopyrightText: 2023 Aravinth Manivannan # # SPDX-License-Identifier: AGPL-3.0-or-later /* main.tf */ variable "libvirt_uri" { description = "URI of libvert socket" type = string default = "qemu:///system" } variable "libvirt_pool_path" { description = "Path of libvirt storage pool" type = string default = "/home/atm/code/libvirt/pool/mcaptcha_basic" } variable "libvirt_debian_src" { description = "Location of Debian 11 qcow2 image" type = string default = "/home/atm/disk-images/debian/12/clould/debian-12-generic-amd64.qcow2" } /* mcaptcha/mcaptcha server server */ variable "mcaptcha_vm_count" { description = "Number of VMs to be deployed to run mcaptcha/mcaptcha" type = number default = 1 } variable "mcaptcha_vm_disk_size" { description = "Size of disk of VMs running mcaptcha/mcaptcha in bytes" type = number default = 8000000000 # 8GB } variable "mcaptcha_vm_memory" { description = "Memory of VMs running mcaptcha/mcaptcha in MB" type = number default = 2000 # 2GB } variable "mcaptcha_vm_vcpu" { description = "Number of CPUs of VMs running mcaptcha/mcaptcha" type = number default = 4 } variable "macvtap_ethernet_interface" { description = "Ethernet interface on the host machine that can be used as macvtap" type = string default = "enp2s0" } variable "ssh_public_key" { description = "Set up SSH login for this public key" type = string default = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC/wXdHpwpY/4ubhYTmuNdGepQpj1kchvTUTApxMZyfyVW4uzrPRTYsle1y9QbTBV35qLkNajRC/wmC5/xPchdXpsJpuD9st1HMhLeR8qwaPyptiYJYT+z/WisWw2k6oWhG3QKvPoRtBdW9nhZnkG+O6zkuGXiRHpS7j2VVboDPpWEe1UdELQFVCwfraRal2g3ENFZ/9V1UrW/4ahRnQnSxERplZUm/fgSxQtmXubTkW68ut7yasBsrKFffMm8JztW0tWgTlTKONd3LCjv4juM0t5+cJDotNDnUR86Tq2PG8io7no/h8BWtazmjdpfGgn02ibX26BkdU0LDEYbJt5q9/Fh9TGk2ZwcMQeyepO1AWQgkmHXZWZELqu6MLQpqdtsOjHp9k0MeSpuIbdwzgf10Ydy7vK1z8irS24tVNNnJaMBwOlVOPwfyztHRADPkFcv2lKSjS1uyKR0FIkV8Kvs4txaIjmwv2LfMg6lF5W6j3ZPLyeE4cplJP0DDjzorSanu31xVnqVb3A8V9awsJ/4H7d59bI99c7QHL4K3fBVP3O0gqd31xAVRsdGs5Tj2P+RpiI6o5JJiOa1+DuBdWzrVIXYchQ30ZjaJp1wTNsYLmAsjeYuQZE2tf1xvywdzD4MB4avugDEWikzRWN9V5PHDZr1bamTCCjOrb2PRCd7eSQ== aravinth7820@gmail.com" }