2023-06-22 10:53:40 -04:00
|
|
|
variable "base_name" {
|
2022-10-06 05:51:26 -04:00
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Base name of the scale set."
|
2023-06-22 10:53:40 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "node_group_name" {
|
|
|
|
type = string
|
|
|
|
description = "Constellation name for the node group (used for configuration and CSP-independent naming)."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "role" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Role of the instance group."
|
2023-06-22 10:53:40 -04:00
|
|
|
validation {
|
|
|
|
condition = contains(["control-plane", "worker"], var.role)
|
|
|
|
error_message = "The role has to be 'control-plane' or 'worker'."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "tags" {
|
|
|
|
type = map(string)
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Tags to include in the scale set."
|
2023-06-22 10:53:40 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "zones" {
|
|
|
|
type = list(string)
|
|
|
|
description = "List of availability zones."
|
|
|
|
default = null
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
2023-06-30 04:53:00 -04:00
|
|
|
variable "initial_count" {
|
2022-10-06 05:51:26 -04:00
|
|
|
type = number
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Number of instances in this scale set."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "instance_type" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Azure instance type to deploy."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "state_disk_size" {
|
|
|
|
type = number
|
|
|
|
default = 30
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Disk size for the state disk of the nodes [GB]."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "resource_group" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Name of the Azure resource group to create the Constellation cluster in."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "location" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Azure location to deploy the cluster in."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "image_id" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "OS Image reference for the cluster's nodes."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "user_assigned_identity" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Name of the user assigned identity to attache to the nodes of the cluster."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "state_disk_type" {
|
|
|
|
type = string
|
|
|
|
default = "Premium_LRS"
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Type of the state disk."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "network_security_group_id" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "ID of the network security group to use for the scale set."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "backend_address_pool_ids" {
|
|
|
|
type = list(string)
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "IDs of the backend address pools to use for the scale set."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "subnet_id" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "ID of the subnet to use for the scale set."
|
2022-10-06 05:51:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "confidential_vm" {
|
|
|
|
type = bool
|
|
|
|
default = true
|
|
|
|
description = "Whether to deploy the cluster nodes as confidential VMs."
|
|
|
|
}
|
2022-10-19 07:10:15 -04:00
|
|
|
|
|
|
|
variable "secure_boot" {
|
|
|
|
type = bool
|
|
|
|
default = false
|
|
|
|
description = "Whether to deploy the cluster nodes with secure boot."
|
|
|
|
}
|
2023-12-08 08:40:31 -05:00
|
|
|
|
|
|
|
variable "marketplace_image" {
|
|
|
|
type = object({
|
|
|
|
name = string
|
|
|
|
publisher = string
|
|
|
|
product = string
|
|
|
|
version = string
|
|
|
|
})
|
|
|
|
default = null
|
|
|
|
description = "Marketplace image to use for the cluster nodes."
|
|
|
|
}
|