mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
9667dfff58
* all vars have snail_case * make iam schema consistent * infrastructure schema * terraform: update AWS infrastructure module * fix ci * terraform: update AWS infrastructure module * terraform: update AWS IAM module * terraform: update Azure Infrastructure module inputs Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * terraform: update Azure IAM module Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * terraform: update GCP infrastructure module Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * terraform: update GCP IAM module Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * terraform: update OpenStack Infrastructure module Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * terraform: update QEMU Infrastructure module Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * terraform-module: fix input name Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * terraform: tidy * cli: ignore whitespace in Terraform variable tests * terraform-module: fix AWS output names * terraform-module: fix output references Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * terraform: rename `api_server_cert_sans` * Update terraform/infrastructure/aws/modules/public_private_subnet/variables.tf Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> * fix self-managed * terraform: revert AWS modules output file renaming * terraform: remove duplicate varable declaration * terraform: rename Azure location field * ci: adjust output name in self-managed e2e test * e2e: continuously print output in upgrade test * e2e: write to output variables * cli: migrate IAM variable names * cli: make `location` field optional --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> Co-authored-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
97 lines
2.2 KiB
HCL
97 lines
2.2 KiB
HCL
variable "base_name" {
|
|
type = string
|
|
description = "Name prefix fort the cluster's VMs."
|
|
}
|
|
|
|
variable "node_group_name" {
|
|
type = string
|
|
description = "Constellation name for the node group (used for configuration and CSP-independent naming)."
|
|
}
|
|
|
|
variable "amount" {
|
|
type = number
|
|
description = "Amount of nodes."
|
|
}
|
|
|
|
variable "vcpus" {
|
|
type = number
|
|
description = "Amount of vCPUs per instance."
|
|
}
|
|
|
|
variable "memory" {
|
|
type = number
|
|
description = "Amount of memory per instance (MiB)."
|
|
}
|
|
|
|
variable "state_disk_size" {
|
|
type = number
|
|
description = "Disk size for the state disk of the nodes [GB]."
|
|
}
|
|
|
|
variable "cidr" {
|
|
type = string
|
|
description = "Subnet to use for DHCP."
|
|
}
|
|
|
|
variable "network_id" {
|
|
type = string
|
|
description = "ID of the Libvirt network to use."
|
|
}
|
|
|
|
variable "pool" {
|
|
type = string
|
|
description = "Name of the Libvirt storage pool to use."
|
|
}
|
|
|
|
variable "boot_mode" {
|
|
type = string
|
|
description = "Boot mode. Can be 'uefi' or 'direct-linux-boot'"
|
|
validation {
|
|
condition = can(regex("^(uefi|direct-linux-boot)$", var.boot_mode))
|
|
error_message = "boot_mode must be 'uefi' or 'direct-linux-boot'"
|
|
}
|
|
}
|
|
|
|
variable "boot_volume_id" {
|
|
type = string
|
|
description = "ID of the Constellation boot disk."
|
|
}
|
|
|
|
variable "kernel_volume_id" {
|
|
type = string
|
|
description = "ID of the Constellation kernel volume."
|
|
default = ""
|
|
}
|
|
|
|
variable "initrd_volume_id" {
|
|
type = string
|
|
description = "ID of the constellation initrd volume."
|
|
default = ""
|
|
}
|
|
|
|
variable "kernel_cmdline" {
|
|
type = string
|
|
description = "Kernel cmdline."
|
|
default = ""
|
|
}
|
|
|
|
variable "role" {
|
|
type = string
|
|
description = "Role of the node in the Constellation cluster. Can either be'control-plane' or 'worker'."
|
|
}
|
|
|
|
variable "machine" {
|
|
type = string
|
|
description = "Machine type. Use 'q35' for secure boot and 'pc' for non secure boot. See 'qemu-system-x86_64 -machine help'."
|
|
}
|
|
|
|
variable "firmware" {
|
|
type = string
|
|
description = "Path to UEFI firmware file. Ignored for direct-linux-boot."
|
|
}
|
|
|
|
variable "nvram" {
|
|
type = string
|
|
description = "Path to UEFI NVRAM template file. Used for secure boot."
|
|
}
|