2018-01-05 19:09:04 +08:00
|
|
|
variable "cluster_name" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-07-31 17:18:27 +08:00
|
|
|
variable "az_list" {
|
2020-02-18 20:29:27 +08:00
|
|
|
type = list(string)
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "az_list_node" {
|
|
|
|
type = list(string)
|
2018-07-31 17:18:27 +08:00
|
|
|
}
|
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "number_of_k8s_masters" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "number_of_k8s_masters_no_etcd" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "number_of_etcd" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "number_of_k8s_masters_no_floating_ip" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "number_of_k8s_masters_no_floating_ip_no_etcd" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "number_of_k8s_nodes" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "number_of_k8s_nodes_no_floating_ip" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "number_of_bastions" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "number_of_gfs_nodes_no_floating_ip" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2019-09-25 20:17:59 +08:00
|
|
|
variable "bastion_root_volume_size_in_gb" {}
|
|
|
|
|
|
|
|
variable "etcd_root_volume_size_in_gb" {}
|
|
|
|
|
|
|
|
variable "master_root_volume_size_in_gb" {}
|
|
|
|
|
|
|
|
variable "node_root_volume_size_in_gb" {}
|
|
|
|
|
|
|
|
variable "gfs_root_volume_size_in_gb" {}
|
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "gfs_volume_size_in_gb" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2020-08-18 15:49:29 +08:00
|
|
|
variable "master_volume_type" {}
|
|
|
|
|
2021-12-01 04:59:01 +08:00
|
|
|
variable "node_volume_type" {}
|
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "public_key_path" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "image" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "image_gfs" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "ssh_user" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "ssh_user_gfs" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "flavor_k8s_master" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "flavor_k8s_node" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "flavor_etcd" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "flavor_gfs_node" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "network_name" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-01-05 19:09:04 +08:00
|
|
|
variable "flavor_bastion" {}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2018-10-19 18:39:34 +08:00
|
|
|
variable "network_id" {
|
|
|
|
default = ""
|
|
|
|
}
|
2017-12-05 20:48:47 +08:00
|
|
|
|
2022-05-03 23:51:56 +08:00
|
|
|
variable "use_existing_network" {
|
|
|
|
type = bool
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "network_router_id" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2017-12-05 20:48:47 +08:00
|
|
|
variable "k8s_master_fips" {
|
2020-08-05 16:32:28 +08:00
|
|
|
type = list
|
2017-12-05 20:48:47 +08:00
|
|
|
}
|
|
|
|
|
2019-04-29 13:58:20 +08:00
|
|
|
variable "k8s_master_no_etcd_fips" {
|
2020-08-05 16:32:28 +08:00
|
|
|
type = list
|
2019-04-29 13:58:20 +08:00
|
|
|
}
|
|
|
|
|
2017-12-05 20:48:47 +08:00
|
|
|
variable "k8s_node_fips" {
|
2020-08-05 16:32:28 +08:00
|
|
|
type = list
|
2017-12-05 20:48:47 +08:00
|
|
|
}
|
|
|
|
|
2022-05-03 23:51:56 +08:00
|
|
|
variable "k8s_masters_fips" {
|
|
|
|
type = map
|
|
|
|
}
|
|
|
|
|
2020-04-16 22:52:45 +08:00
|
|
|
variable "k8s_nodes_fips" {
|
2020-08-05 16:32:28 +08:00
|
|
|
type = map
|
2020-04-16 22:52:45 +08:00
|
|
|
}
|
|
|
|
|
2017-12-05 20:48:47 +08:00
|
|
|
variable "bastion_fips" {
|
2020-08-05 16:32:28 +08:00
|
|
|
type = list
|
2017-12-05 20:48:47 +08:00
|
|
|
}
|
2018-04-30 23:11:07 +08:00
|
|
|
|
2018-09-28 17:35:02 +08:00
|
|
|
variable "bastion_allowed_remote_ips" {
|
2020-08-05 16:32:28 +08:00
|
|
|
type = list
|
2018-09-28 17:35:02 +08:00
|
|
|
}
|
|
|
|
|
2023-08-28 18:07:03 +08:00
|
|
|
variable "bastion_allowed_remote_ipv6_ips" {
|
|
|
|
type = list
|
|
|
|
}
|
|
|
|
|
2019-04-21 16:57:44 +08:00
|
|
|
variable "master_allowed_remote_ips" {
|
2020-08-05 16:32:28 +08:00
|
|
|
type = list
|
2019-04-21 16:57:44 +08:00
|
|
|
}
|
|
|
|
|
2023-08-28 18:07:03 +08:00
|
|
|
variable "master_allowed_remote_ipv6_ips" {
|
|
|
|
type = list
|
|
|
|
}
|
|
|
|
|
2019-04-15 22:22:08 +08:00
|
|
|
variable "k8s_allowed_remote_ips" {
|
2020-08-05 16:32:28 +08:00
|
|
|
type = list
|
2019-04-15 22:22:08 +08:00
|
|
|
}
|
|
|
|
|
2023-08-28 18:07:03 +08:00
|
|
|
variable "k8s_allowed_remote_ips_ipv6" {
|
|
|
|
type = list
|
|
|
|
}
|
|
|
|
|
2019-04-17 17:10:03 +08:00
|
|
|
variable "k8s_allowed_egress_ips" {
|
2020-08-05 16:32:28 +08:00
|
|
|
type = list
|
2019-04-17 17:10:03 +08:00
|
|
|
}
|
|
|
|
|
2023-08-28 18:07:03 +08:00
|
|
|
variable "k8s_allowed_egress_ipv6_ips" {
|
|
|
|
type = list
|
|
|
|
}
|
|
|
|
|
2023-01-05 20:16:00 +08:00
|
|
|
variable "k8s_masters" {
|
|
|
|
type = map(object({
|
|
|
|
az = string
|
|
|
|
flavor = string
|
|
|
|
floating_ip = bool
|
|
|
|
etcd = bool
|
|
|
|
image_id = optional(string)
|
|
|
|
root_volume_size_in_gb = optional(number)
|
|
|
|
volume_type = optional(string)
|
|
|
|
network_id = optional(string)
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "k8s_nodes" {
|
|
|
|
type = map(object({
|
|
|
|
az = string
|
|
|
|
flavor = string
|
|
|
|
floating_ip = bool
|
|
|
|
extra_groups = optional(string)
|
|
|
|
image_id = optional(string)
|
|
|
|
root_volume_size_in_gb = optional(number)
|
|
|
|
volume_type = optional(string)
|
|
|
|
network_id = optional(string)
|
|
|
|
additional_server_groups = optional(list(string))
|
|
|
|
server_group = optional(string)
|
|
|
|
cloudinit = optional(object({
|
2023-09-20 18:22:01 +08:00
|
|
|
extra_partitions = optional(list(object({
|
2023-01-05 20:16:00 +08:00
|
|
|
volume_path = string
|
|
|
|
partition_path = string
|
|
|
|
partition_start = string
|
|
|
|
partition_end = string
|
|
|
|
mount_path = string
|
2023-09-20 18:22:01 +08:00
|
|
|
})), [])
|
|
|
|
netplan_critical_dhcp_interface = optional(string, "")
|
2023-01-05 20:16:00 +08:00
|
|
|
}))
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "additional_server_groups" {
|
|
|
|
type = map(object({
|
|
|
|
policy = string
|
|
|
|
}))
|
|
|
|
}
|
2020-04-16 22:52:45 +08:00
|
|
|
|
2018-04-30 23:11:07 +08:00
|
|
|
variable "supplementary_master_groups" {
|
|
|
|
default = ""
|
|
|
|
}
|
2018-06-28 22:32:59 +08:00
|
|
|
|
|
|
|
variable "supplementary_node_groups" {
|
|
|
|
default = ""
|
|
|
|
}
|
2018-10-31 19:09:22 +08:00
|
|
|
|
2020-08-27 17:07:13 +08:00
|
|
|
variable "master_allowed_ports" {
|
|
|
|
type = list
|
|
|
|
}
|
|
|
|
|
2023-08-28 18:07:03 +08:00
|
|
|
variable "master_allowed_ports_ipv6" {
|
|
|
|
type = list
|
|
|
|
}
|
|
|
|
|
2018-10-31 19:09:22 +08:00
|
|
|
variable "worker_allowed_ports" {
|
2020-08-05 16:32:28 +08:00
|
|
|
type = list
|
2018-10-31 19:09:22 +08:00
|
|
|
}
|
2019-10-07 19:09:09 +08:00
|
|
|
|
2023-08-28 18:07:03 +08:00
|
|
|
variable "worker_allowed_ports_ipv6" {
|
|
|
|
type = list
|
|
|
|
}
|
|
|
|
|
2022-09-28 13:03:35 +08:00
|
|
|
variable "bastion_allowed_ports" {
|
|
|
|
type = list
|
|
|
|
}
|
|
|
|
|
2023-08-28 18:07:03 +08:00
|
|
|
variable "bastion_allowed_ports_ipv6" {
|
|
|
|
type = list
|
|
|
|
}
|
|
|
|
|
2019-12-09 17:15:10 +08:00
|
|
|
variable "use_access_ip" {}
|
|
|
|
|
2021-11-22 18:53:09 +08:00
|
|
|
variable "master_server_group_policy" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "node_server_group_policy" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "etcd_server_group_policy" {
|
|
|
|
type = string
|
2020-02-18 20:29:27 +08:00
|
|
|
}
|
2020-11-05 21:30:54 +08:00
|
|
|
|
|
|
|
variable "extra_sec_groups" {
|
|
|
|
type = bool
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "extra_sec_groups_name" {
|
|
|
|
type = string
|
2021-02-16 23:05:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "image_uuid" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "image_gfs_uuid" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "image_master" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "image_master_uuid" {
|
|
|
|
type = string
|
|
|
|
}
|
2021-06-25 15:26:45 +08:00
|
|
|
|
|
|
|
variable "group_vars_path" {
|
|
|
|
type = string
|
|
|
|
}
|
2022-01-15 04:58:32 +08:00
|
|
|
|
|
|
|
variable "port_security_enabled" {
|
|
|
|
type = bool
|
|
|
|
}
|
2022-05-03 23:51:56 +08:00
|
|
|
|
|
|
|
variable "force_null_port_security" {
|
|
|
|
type = bool
|
|
|
|
}
|
2022-09-30 15:48:29 +08:00
|
|
|
|
|
|
|
variable "private_subnet_id" {
|
|
|
|
type = string
|
|
|
|
}
|