variable "admin-ips" { default = ["0.0.0.0/0"] description = "A list of ips or cidr blocks that are allowed to connect to the nodes. This variable is only used when using the aws-network-from-scratch module." type = list(string) } variable "aws-zfs-drive-letters" { default = ["f", "g", "h", "i", "j"] description = "These are the drove letters to use when attaching EBS volumes, ie. /dev/sdf or /dev/sdg" type = list(string) } ################################################################################ # Query existing infrastructure. # Variables used to grab existing resources from AWS. # # We have 2 sets of three variables in this section. 1 section has 'managed' in # the name and the other has 'mss-dev' in the name. There are not restrictions # as to what we can put into these VPCs. The names of the variable simply match # the names of the VPCs and have no meaning for what resources are allowed. ################################################################################ variable "aws-existing-managed-sg-name" { default = "change-me-if-using-aws-network-existing" description = "The name of the existing security group when using aws-network-existing." } variable "aws-existing-managed-vpc-name" { default = "change-me-if-using-aws-network-existing" description = "The name of the existing VPC when using aws-network-existing." } variable "aws-existing-managed-subnet-names" { description = "A list of subnet names that already exist in aws-existing-managed-vpc-name" default = [] type = list(string) } variable "aws-existing-mss-dev-sg-name" { default = "change-me-if-using-aws-network-existing" description = "The name of the existing security group when using aws-network-existing with the mss-dev VPC." } variable "aws-existing-mss-dev-vpc-name" { default = "change-me-if-using-aws-network-existing" description = "The name of the existing VPC when using aws-network-existing with the mss-dev VPC." } variable "aws-existing-mss-dev-subnet-names" { description = "A list of subnet names that already exist in aws-existing-mss-dev-vpc-name" default = [] type = list(string) } ################################################################################ # End query existing infrastructure. ################################################################################ variable "aws-proxy-private-ip" { description = "The private IP to request for the proxy instance." type = string } variable "aws-region" { default = "us-east-1" description = "The AWS region to use." } variable "aws-subnet-cidr-block" { default = "10.0.1.0/24" description = "The address space to be used for this subnet." } variable "aws-vpc-cidr-block" { default = "10.0.0.0/16" description = "The address space to be used for the VPC that all the AWS nodes will be in." } variable "disk-image-dir" { description = "This is the location on the KVM hypervisor host where all the disk images will be kept." } variable "disk-image-pool-name" { default = "k8s-tf-images" description = "The name of the disk pool where all the images will be kept." } variable "libvirt-connection-url" { default = "nobody@localhost" description = "The libvirt connection URI, ie. qemu+ssh://@/system" } variable "libvirt-network-name" { default = "default" description = "The name of a pre-existing libvirt virtual-network." } variable "libvirt-node-disk-size" { default = 4294967296 description = "The size of the disk to be used for libvirt nodes. (in bytes)" } variable "node-memory" { default = "2048" description = "The amount of memory to be used for all the nodes." type = number } variable "node-vcpus" { default = "2" description = "The amount of vcpus to be used for all the nodes." type = number } variable "root-admin-passwd" { description = "This will be the password for the root and admin user. The format of this can by any format accepted by cloud-init's chpasswd module." } variable "root-admin-pub-key" { description = "The public key to be added to authorized_keys for the root and admin accounts." } variable "base-image" { default = "https://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64-disk-kvm.img" } variable "vm-name-prefix" { default = "k8s-tf" description = "This prefix will appear before all VM names and hostnames, ie. k8s-tf-master-0." }