mirror of
https://github.com/optim-enterprises-bv/terraform-talos.git
synced 2025-11-02 03:08:34 +00:00
78 lines
1.6 KiB
HCL
78 lines
1.6 KiB
HCL
|
|
variable "openstack_api" {}
|
|
variable "openstack_user" {}
|
|
variable "openstack_password" {}
|
|
variable "openstack_tenant_id" {}
|
|
variable "openstack_tenant_name" {}
|
|
variable "openstack_project" {}
|
|
|
|
variable "vpc_main_cidr" {
|
|
default = "172.18.0.0/16"
|
|
}
|
|
|
|
variable "regions" {
|
|
type = list(string)
|
|
description = "The id of the openstack region"
|
|
default = ["GRA7", "UK1"]
|
|
}
|
|
|
|
variable "kubernetes" {
|
|
type = map(string)
|
|
default = {
|
|
podSubnets = "10.32.0.0/12,fd40:10:32::/102"
|
|
serviceSubnets = "10.200.0.0/22,fd40:10:200::/112"
|
|
domain = "cluster.local"
|
|
apiDomain = "api.cluster.local"
|
|
clusterName = "talos-k8s-openstack"
|
|
tokenMachine = ""
|
|
caMachine = ""
|
|
token = ""
|
|
ca = ""
|
|
}
|
|
sensitive = true
|
|
}
|
|
|
|
variable "controlplane" {
|
|
description = "Property of controlplane"
|
|
type = map(any)
|
|
default = {
|
|
count = 0,
|
|
type = ""
|
|
type_lb = ""
|
|
}
|
|
}
|
|
|
|
variable "tags" {
|
|
description = "Tags of resources"
|
|
type = map(string)
|
|
default = {
|
|
environment = "Develop"
|
|
}
|
|
}
|
|
|
|
variable "whitelist_admins" {
|
|
description = "Whitelist for administrators"
|
|
default = ["0.0.0.0/0", "::/0"]
|
|
}
|
|
|
|
variable "whitelist_web" {
|
|
description = "Whitelist for web (default Cloudflare network)"
|
|
default = [
|
|
"173.245.48.0/20",
|
|
"103.21.244.0/22",
|
|
"103.22.200.0/22",
|
|
"103.31.4.0/22",
|
|
"141.101.64.0/18",
|
|
"108.162.192.0/18",
|
|
"190.93.240.0/20",
|
|
"188.114.96.0/20",
|
|
"197.234.240.0/22",
|
|
"198.41.128.0/17",
|
|
"162.158.0.0/15",
|
|
"172.64.0.0/13",
|
|
"131.0.72.0/22",
|
|
"104.16.0.0/13",
|
|
"104.24.0.0/14",
|
|
]
|
|
}
|