feat: added main terraform module

This commit is contained in:
ITQ
2025-08-06 03:09:06 +03:00
parent 0737aa02c4
commit b8715101d8
4 changed files with 186 additions and 0 deletions
+66
View File
@@ -0,0 +1,66 @@
variable "naming_prefix" {
type = string
default = "task13_"
}
variable "dot_env_file_path" {
type = string
default = ".env"
}
variable "image_pool_folder" {
description = "Local folder where base images are stored"
type = string
default = "../assets/images"
}
variable "image_filename" {
description = "Name of the base cloud image file"
type = string
default = "noble-server-cloudimg-amd64.img"
}
variable "control_plane_ipv4" {
type = string
default = "10.6.6.10"
}
variable "control_plane_ipv6" {
type = string
default = "2001:db8:ca2:2::10"
}
variable "worker_ipv4s" {
type = list(string)
default = ["10.6.6.20"]
}
variable "worker_ipv6s" {
type = list(string)
default = ["2001:db8:ca2:2::20"]
}
variable "network_ipv4_cidr" {
type = string
default = "10.6.6.0/24"
}
variable "network_ipv6_cidr" {
type = string
default = "2001:db8:ca2:2::/64"
}
variable "mtu" {
type = number
default = 1500
}
variable "cpu_per_node" {
type = number
default = 4
}
variable "mem_per_node" {
type = number
default = 2048
}