variables.tf (1731B)
1 variable "project" { 2 type = string 3 default = "projectName" 4 } 5 6 variable "hosts" { 7 type = list 8 default = [] 9 } 10 11 variable "type2_hosts" { 12 type = list 13 default = [] 14 } 15 16 variable "vcpu" { 17 type = number 18 default = 1 19 } 20 21 variable "memory" { 22 type = number 23 default = 1048 24 } 25 26 variable "disk" { 27 type = number 28 default = "12000000000" 29 description = "The size of the libvirt volume in bytes (default 12G)" 30 } 31 32 variable "cloudinit_iso" { 33 type = string 34 default = "commoninit.iso" 35 description = "Destination of the cloud-init iso image" 36 } 37 38 variable "cloudinit_userdata" { 39 type = string 40 default = "cloud_init.cfg" 41 description = "cloud-init userdata config" 42 } 43 44 variable "cloudinit_networkconfig" { 45 type = string 46 default = "network_config.cfg" 47 description = "cloud-init network config file" 48 } 49 50 variable "baseimage" { 51 type = string 52 default = "https://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64-disk-kvm.img" 53 description = "URL to a qcow2 image used as backing image for all VMs" 54 } 55 56 variable "baseimage_type2" { 57 type = string 58 default = "https://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64-disk-kvm.img" 59 description = "URL to a qcow2 image used as backing image for type2 VMs" 60 } 61 62 variable "baseimage_format" { 63 type = string 64 default = "qcow2" 65 description = "Format of the baseimage used as backing image for all VMs" 66 } 67 68 variable "domain" { 69 type = string 70 default = "libvirt" 71 description = "Domain name for the virtual network" 72 } 73 74 variable "network" { 75 type = string 76 default = "10.66.3.0/24" 77 description = "Subnet of the virtual network" 78 }