2023-07-03 10:33:00 -04:00
|
|
|
variable "base_name" {
|
2023-02-27 12:19:52 -05:00
|
|
|
type = string
|
|
|
|
description = "Base name of the instance group."
|
|
|
|
}
|
|
|
|
|
2023-12-15 04:36:58 -05:00
|
|
|
variable "node_group_name" {
|
2023-03-01 02:48:17 -05:00
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Constellation name for the instance group (used for configuration and CSP-independent naming)."
|
2023-03-01 02:48:17 -05:00
|
|
|
}
|
|
|
|
|
2023-02-27 12:19:52 -05:00
|
|
|
variable "role" {
|
|
|
|
type = string
|
|
|
|
description = "The role of the instance group."
|
|
|
|
validation {
|
2023-06-23 06:08:30 -04:00
|
|
|
condition = contains(["control-plane", "worker"], var.role)
|
|
|
|
error_message = "The role has to be 'control-plane' or 'worker'."
|
2023-02-27 12:19:52 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-15 04:36:58 -05:00
|
|
|
variable "tags" {
|
|
|
|
type = list(string)
|
|
|
|
description = "Tags to attach to each node."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "uid" {
|
|
|
|
type = string
|
|
|
|
description = "Unique ID of the Constellation."
|
|
|
|
}
|
|
|
|
|
2023-06-30 04:53:00 -04:00
|
|
|
variable "initial_count" {
|
2023-02-27 12:19:52 -05:00
|
|
|
type = number
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Number of instances in this instance group."
|
2023-02-27 12:19:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "image_id" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "OS Image reference for the cluster's nodes."
|
2023-02-27 12:19:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "flavor_id" {
|
|
|
|
type = string
|
|
|
|
description = "Flavor ID (machine type) to use for the nodes."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "security_groups" {
|
|
|
|
type = list(string)
|
|
|
|
description = "Security groups to place the nodes in."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "disk_size" {
|
|
|
|
type = number
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Disk size for the state disk of the nodes [GB]."
|
2023-02-27 12:19:52 -05:00
|
|
|
}
|
|
|
|
|
2023-04-27 03:08:43 -04:00
|
|
|
variable "state_disk_type" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Type of the state disk."
|
2023-04-27 03:08:43 -04:00
|
|
|
}
|
|
|
|
|
2023-02-27 12:19:52 -05:00
|
|
|
variable "availability_zone" {
|
|
|
|
type = string
|
2023-12-15 04:36:58 -05:00
|
|
|
description = "Availability zone to deploy the nodes in."
|
2023-02-27 12:19:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "network_id" {
|
|
|
|
type = string
|
|
|
|
description = "Network ID to attach each node to."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "init_secret_hash" {
|
|
|
|
type = string
|
|
|
|
description = "Hash of the init secret."
|
|
|
|
}
|
2023-03-03 04:10:36 -05:00
|
|
|
|
|
|
|
variable "identity_internal_url" {
|
|
|
|
type = string
|
|
|
|
description = "Internal URL of the Identity service."
|
|
|
|
}
|
|
|
|
|
2023-03-03 09:28:28 -05:00
|
|
|
variable "openstack_user_domain_name" {
|
|
|
|
type = string
|
|
|
|
description = "OpenStack user domain name."
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "openstack_username" {
|
|
|
|
type = string
|
|
|
|
description = "OpenStack user name."
|
|
|
|
}
|
2023-03-03 04:10:36 -05:00
|
|
|
|
2023-03-03 09:28:28 -05:00
|
|
|
variable "openstack_password" {
|
2023-03-03 04:10:36 -05:00
|
|
|
type = string
|
2023-03-03 09:28:28 -05:00
|
|
|
description = "OpenStack password."
|
2023-03-03 04:10:36 -05:00
|
|
|
}
|